> > I could add that to the xine package, but there are other DVD
players that
> > use that symlink too, maybe it should be created by the installer
like the
> > /dev/cdrom link.
>
> it's devfsd which take care of this. It would be nice if it would also
> create
> the /dev/dvd link...
>
> the test is quite simple:
>
> int is_dvd = 0;
> int fd = open(dev, O_NONBLOCK);
> if (fd) {
> is_dvd = ioctl(fd, CDROM_GET_CAPABILITY) & CDC_DVD;
> close(fd);
> }
> return is_dvd;
>
no. Folks, you really have strange notion what exactly devfsd is :-)
Pixel, just create link in /lib/dev-state at installation time.
Anybody can just do
ln -s cdroms/cdrom0 /dev/dvd
At any time. What's wrong with it?
We also could enter it into devfsd.conf. I do not like it because if we
are going to do it this way we really must finally switch to devfsd
configuration *directory* where installer (or kudzu or harddrake ...)
would just put line
REGISTER ^ide/host0/.../cd$ CFUNCTION GLOBAL mksymlink $devname dvd
> titi, you hack this in devfsd?
>
No. It is abuse of devfsd. Everything can be done in user space easily.
Let's add
OPTIONAL_INCLUDE /etc/sysconfig/devfsd.d
And let installer put file dvd with above contents there. And then we
could finally put symlink for mouse there and get rid of error messages
on bootup. And much more really ...
-andrej