diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-04-08 15:09:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-04-08 15:09:40 +0000 |
commit | c3514cc2c522af9b766778a25adc380d0b33c662 (patch) | |
tree | acc6e068dadab6c4e20822ff4cf4328b755eacaf /perl-install | |
parent | 4325ba99759a4cd65d6b0ba7dea017a8b7bb4fae (diff) | |
download | drakx-c3514cc2c522af9b766778a25adc380d0b33c662.tar drakx-c3514cc2c522af9b766778a25adc380d0b33c662.tar.gz drakx-c3514cc2c522af9b766778a25adc380d0b33c662.tar.bz2 drakx-c3514cc2c522af9b766778a25adc380d0b33c662.tar.xz drakx-c3514cc2c522af9b766778a25adc380d0b33c662.zip |
get rid of the chloop code (not used anymore)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/devices.pm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index b9f360431..9a8a005b7 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -37,18 +37,15 @@ sub del_loop { my ($dev) = @_; run_program::run("losetup", "-d", $dev); } -sub find_free_loop_raw { - my ($o_chloop) = @_; +sub find_free_loop() { foreach (0..7) { - my $dev = make(($o_chloop && 'ch') . "loop$_"); + my $dev = make("loop$_"); sysopen(my $F, $dev, 2) or next; !ioctl($F, c::LOOP_GET_STATUS(), my $_tmp) && $! == 6 or next; #- 6 == ENXIO return $dev; } die "no free loop found"; } -sub find_free_loop() { find_free_loop_raw() } -sub find_free_chloop() { find_free_loop_raw('chloop') } sub set_loop { my ($file, $o_encrypt_key, $o_encryption) = @_; eval { modules::load('loop') }; @@ -120,7 +117,6 @@ sub entry { "usb/lp" => [ c::S_IFCHR(), 180, 0 ], "input/event" => [ c::S_IFCHR(), 13, 64 ], "loop" => [ c::S_IFBLK(), 7, 0 ], - "chloop" => [ c::S_IFBLK(), 100, 0 ], "md" => [ c::S_IFBLK(), 9, 0 ], "nst" => [ c::S_IFCHR(), 9, 128 ], "scd" => [ c::S_IFBLK(), 11, 0 ], |