Messages in this thread | | | Subject | Re: Kernel 1.3.76 ref CDROM | Date | Sat, 30 Mar 1996 09:06:53 PST | From | Tim Wright <> |
| |
And lets face it, something along the lines of main() { int fd = open ("/dev/cdrom", O_RDONLY); ioctl(fd, CDROMEJECT); close(fd); }
is probably not the hardest thing to write :-) (even when you've added error correction etc.).
You're quite correct. The "Unix" way of doing things is not to stick lots of unrelated functionality into a tool and ejecting a cdrom is something that does NOT belong in the command to unmount a filesystem.
t
In message <199603291804.LAA06166@rover.village.org>,Warner Losh writes: > : Ha ha, very funny. However, I know it'd be convenient for _me_ to have my > : CD-ROM drive kick the tray open when it's unmounted. > > So what's wrong with umount /cdrom ; eject? This doesn't need to be a > kernel option. > > If eject doesn't exist, then it should be writtne :-) > > Warner -- Tim Wright, Worldwide Technical Services, | Email: timw@sequent.com Sequent Computer Systems Inc., 15450, | SW Koll Parkway, Beaverton, Oregon 97006 | Phone: +1-503-578-3822 "Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI
| |