diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-08-18 04:32:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-08-18 04:32:24 +0000 |
commit | 94f257d030c1fd411ec48e438db18c657cd97e40 (patch) | |
tree | a4537ad6b19dde305ee0422c7b6a8c4ce104dd9b /perl-install/loopback.pm | |
parent | 3441ffe13a56f8b565e950b1c8e40c70b2acd97a (diff) | |
download | drakx-94f257d030c1fd411ec48e438db18c657cd97e40.tar drakx-94f257d030c1fd411ec48e438db18c657cd97e40.tar.gz drakx-94f257d030c1fd411ec48e438db18c657cd97e40.tar.bz2 drakx-94f257d030c1fd411ec48e438db18c657cd97e40.tar.xz drakx-94f257d030c1fd411ec48e438db18c657cd97e40.zip |
no_comment
Diffstat (limited to 'perl-install/loopback.pm')
-rw-r--r-- | perl-install/loopback.pm | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/perl-install/loopback.pm b/perl-install/loopback.pm index 1a90e1091..4eb14a9dc 100644 --- a/perl-install/loopback.pm +++ b/perl-install/loopback.pm @@ -72,31 +72,6 @@ sub create { $f; } -sub inspect { - my ($part, $prefix, $rw) = @_; - - isMountableRW($part) or return; - - my $dir = "/tmp/loopback_tmp"; - - if ($part->{isMounted}) { - $dir = ($prefix || '') . $part->{mntpoint}; - } elsif ($part->{notFormatted} && !$part->{isFormatted}) { - $dir = ''; - } else { - mkdir $dir, 0700; - fs::mount($part->{device}, $dir, type2fs($part->{type}), !$rw); - } - my $h = before_leaving { - if (!$part->{isMounted} && $dir) { - fs::umount($dir); - unlink($dir) - } - }; - $h->{dir} = $dir; - $h; -} - sub getFree { my ($dir, $part) = @_; my $freespace = $dir ? |