[PATCH] eject -T support

Denis Vlasenko vda.linux at googlemail.com
Sat Oct 7 21:14:55 UTC 2006


On Saturday 07 October 2006 19:27, Rob Landley wrote:
> On Friday 06 October 2006 12:09 pm, Tito wrote:
> > 1)  something mounted OVER our cdrom:
> > 
> > /dev/hdd   on /media/cdrom1 type iso9660 (ro,noexec,nosuid,nodev)
> > /dev/hdb1 on /media/cdrom1 type reiserfs (rw)
> > 
> > ./busybox eject
> > eject: /dev/cdrom: Input/output error
> > 
> > /dev/hdd   on /media/cdrom1 type iso9660 (ro,noexec,nosuid,nodev)
> > 
> > the overmounted block device is unmounted and eject fails.
> 
> Doctor, it hurts when I poke myself in the eye with a fork!
> 
> Pilot error.
> 
> > 2)  cdrom is mounted many times:
> > 
> > /dev/hdd on /media/cdrom1 type iso9660 (ro)
> > /dev/hdd on /media/cdrom0 type iso9660 (ro)
> 
> Pilot error.

Yes, but we'd better fail instead of unmounting _something else_!
That's my proposal: just (try to) eject the thing, don't
try to do umount job.
--
vda



More information about the busybox mailing list