[PATCH] eject -T support

Rob Landley rob at landley.net
Sat Oct 7 10:27:34 PDT 2006


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.

> These corner cases seems to be fixed by this example code,
> but it is rather bloated as it imports half of umount's code 
> and is not well tested. 
> If you want to take a look at it....maybe you can squeeze it
> or you have some better idea.

If I type eject, and somebody put crazy-glue all over the cdrom, the drive 
refuses to pop out.  Please fix this in software.

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list