diff options
author | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
commit | 8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch) | |
tree | 544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/swap.pm | |
parent | b5dc638815c772056e07cd013f5b1674900456d5 (diff) | |
download | drakx-backup-do-not-use-topic/mandrakesoft.tar drakx-backup-do-not-use-topic/mandrakesoft.tar.gz drakx-backup-do-not-use-topic/mandrakesoft.tar.bz2 drakx-backup-do-not-use-topic/mandrakesoft.tar.xz drakx-backup-do-not-use-topic/mandrakesoft.zip |
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/swap.pm')
-rw-r--r-- | perl-install/swap.pm | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/perl-install/swap.pm b/perl-install/swap.pm deleted file mode 100644 index 564513ad9..000000000 --- a/perl-install/swap.pm +++ /dev/null @@ -1,32 +0,0 @@ -package swap; # $Id$ - -use diagnostics; -use strict; - -use common; -use log; -use devices; - -sub make { - my ($dev, $checkBlocks) = @_; - run_program::raw({ timeout => 60 * 60 }, "mkswap", if_($checkBlocks, '-c'), devices::make($dev)) or die N("%s formatting of %s failed", 'swap', $dev); -} - -sub enable { - my ($dev, $checkBlocks) = @_; - make($dev, $checkBlocks); - swapon($dev); -} - -sub swapon { - my ($dev) = @_; - log::l("swapon called with $dev"); - syscall_('swapon', devices::make($dev), 0) or die "swapon($dev) failed: $!"; -} - -sub swapoff($) { - my ($dev) = @_; - syscall_('swapoff', devices::make($dev)) or die "swapoff($dev) failed: $!"; -} - -1; |