2003-01-07 21:01:39

by Pozsar Balazs

[permalink] [raw]
Subject: [BUG] floopy driver bug in 2.4.20


Hi all,

I found wierd bug in the floppy driver. When I have _no_ floppy inserted
in the drive, I get the expected ENXIO every _other_ (second) time, but I
get success (!) the other times:

root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
dd: opening `/dev/fd0u1440': No such device or address
1
root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
1+0 records in
1+0 records out
0
root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
dd: opening `/dev/fd0u1440': No such device or address
1
root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
1+0 records in
1+0 records out
0
root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
dd: opening `/dev/fd0u1440': No such device or address
1
root@brefatox:~# dd if=/dev/zero of=/dev/fd0u1440 bs=1440k count=1; echo
$?
1+0 records in
1+0 records out
0
root@brefatox:~#

...and so on...

Why is this?


root@brefatox:~# dd --version
dd (coreutils) 4.5.4
...

--
pozsy