summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/resize_ntfs.pm
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
committerMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
commit8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch)
tree544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/diskdrake/resize_ntfs.pm
parentb5dc638815c772056e07cd013f5b1674900456d5 (diff)
downloaddrakx-topic/mandrakesoft.tar
drakx-topic/mandrakesoft.tar.gz
drakx-topic/mandrakesoft.tar.bz2
drakx-topic/mandrakesoft.tar.xz
drakx-topic/mandrakesoft.zip
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/diskdrake/resize_ntfs.pm')
-rw-r--r--perl-install/diskdrake/resize_ntfs.pm30
1 files changed, 0 insertions, 30 deletions
diff --git a/perl-install/diskdrake/resize_ntfs.pm b/perl-install/diskdrake/resize_ntfs.pm
deleted file mode 100644
index 6ffe146f9..000000000
--- a/perl-install/diskdrake/resize_ntfs.pm
+++ /dev/null
@@ -1,30 +0,0 @@
-package diskdrake::resize_ntfs;
-
-use diagnostics;
-use strict;
-
-use run_program;
-use common;
-
-
-sub new {
- my ($type, $_device, $dev) = @_;
- bless { dev => $dev }, $type;
-}
-
-sub min_size {
- my ($o) = @_;
- my $r;
- run_program::run('ntfsresize', '>', \$r, '-f', '-i', $o->{dev}) or die "ntfsresize failed:\n$r\n";
- $r =~ /minimal size: (\d+) KiB/ && $1 * 2
-}
-
-sub resize {
- my ($o, $size) = @_;
- my @l = ('-ff', '-s' . int($size / 2) . 'ki', $o->{dev});
- my $r;
- run_program::run('ntfsresize', '>', \$r, '-n', @l) or die "ntfsresize failed: $r\n";
- run_program::run('ntfsresize', '>', \$r, @l) or die "ntfsresize failed: $r\n";
-}
-
-1;