lkml.org 
[lkml]   [2003]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Can't eject a previously mounted CD?
From
On Sat, Dec 27, 2003 at 12:31:55AM +0000, Matt wrote:
> If you are on debian i have noticed recently that gnomevfs (on unstable)
> requires famd. famd will open /cdrom after it is mounted and run a dir
> notification on it. now i think famd needs some fixing, firstly to not
> bother running dir notice on ro filesystems, and secondly allow an
> authorised user (other than the original program (in this case
> nautilus)) to drop specific mount point dirs from the notification list.
> so yes this is a userland problem as far as i can see.

I am using Debian. This is a good point. However, I have no component of
fam installed on this Debian machine at all.

And why does the eject command work? I decided to strace it to see where
it gets this invalid argument from..

open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x5309, 0xbffff948) = -1 EIO (Input/output error)
ioctl(3, FIBMAP, 0xbffff7f0) = 0
ioctl(3, FIBMAP, 0xbffff7f0) = 0
ioctl(3, FIBMAP, 0xbffff7f0) = 0
ioctl(3, BLKRRPART, 0xbffff7f0) = -1 EINVAL (Invalid argument)
ioctl(3, FDEJECT, 0xbffff948) = -1 EINVAL (Invalid argument)
ioctl(3, SNDCTL_MIDI_MPUMODE, 0xbffff900) = -1 EINVAL (Invalid argument)

It wasn't as revealing as I thought it would be, but does this mean
anything to someone more knowledgeable than I?

Note that as mentioned in a previous message, eject _does_ eject the CD.

--
Joshua Kwan
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.104 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site