summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-11 01:11:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-11 01:11:06 +0000
commitf39f307ded336dddb9a4767b1128b82471446412 (patch)
tree1b32019b5547e9706346c48fb34f8dfa062af865 /perl-install/devices.pm
parent39b16a6249eb865a2319a8e3cb1e4270e6fec539 (diff)
downloaddrakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.gz
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.bz2
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.tar.xz
drakx-backup-do-not-use-f39f307ded336dddb9a4767b1128b82471446412.zip
no_comment
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 19baec6f7..29c89a1d5 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -38,11 +38,12 @@ sub size($) {
sub set_loop {
my ($file) = @_;
- foreach (0..9) {
+ foreach (0..7) {
local *F;
my $dev = make("loop$_");
- sysopen F, $dev, 0 or next;
+ sysopen F, $dev, 2 or next;
!ioctl(F, c::LOOP_GET_STATUS(), my $tmp) && $! == 6 or next; #- 6 == ENXIO
+ log::l("trying with loop $dev");
return c::set_loop(fileno F, $file) && $dev;
}
}