Problem with cd eject via network block device

Alan Cox alan at redhat.com
Thu Dec 25 00:56:22 UTC 2003


On Wed, Dec 24, 2003 at 06:40:50PM -0600, Steve Bergman wrote:
> 7883  open("/dev/nd1", O_RDONLY|O_NONBLOCK) = 3
> 7883  ioctl(3, 0x5309, 0xbffffad8)      = -1 EINVAL (Invalid argument)
> 7883  ioctl(3, FIBMAP, 0xbffff980)      = -1 EINVAL (Invalid argument)
> 7883  ioctl(3, FDEJECT, 0xbffffad8)     = -1 EINVAL (Invalid argument)
> 7883  ioctl(3, SNDCTL_MIDI_MPUMODE, 0xbffffa90) = -1 EINVAL (Invalid
> argument)
> 7883  write(2, "eject: unable to eject, last err"..., 53) = 53

I don't believe eject is supported on an nbd device. Its certainly possible
to add it to the protocol (and indeed in theory a lot of other ioctls that
its underlying driver might handle)

One to take up with the nbd people I think





More information about the devel mailing list