lkml.org 
[lkml]   [1996]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Kernel 1.3.76 ref CDROM
Date
From
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


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.056 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site