Joerg Schilling wrote:
Well, if you do it right, then then the automounter is the wrong place for this functionality: - The task os an automounter is to watch where you try to step in. If you step into some magic land, it opens a door for you. If you go out of the magic land, the automounter will make it disappear. - The task of a volume management system in on contrary is to watch the media. If someone inderts a medium, it mounts this medium if possible. This is independent to where you step in. It does _not_ unmount the medium if you are obviously not interested in it. That's clear explanation of the technical issues.
The GUI is a user interface and should do for the user what the user wishes done. Having the volume management (and that term means something else in most contexts) in the GUI allows the user to control how the system will behave when a specific users is on the console. Anything system-wide would not be doing what the individual users find useful. NOTE: I'm not saying that's wrong, just that there are good reasons for having this particular feature in the GUI and as a per-user option. I do believe it should be disables for any user not at the console.
I note that growisofs unmounts the device if something is using it. I'm not saying you should do that, just that there are ways to cope without knowing anything about the application. I would personally prefer that the application detect that the device is in use and refuce to share. And open exclusive to prevent other access while burning takes place. On Solaris, the problem for many years was that Sun did not write a man page for vold. Now that a man page is present, it took me 3 years to find the time to add volmgt suppport. But Note: libscg _does_ have support for the Solaris volmgt system - there is only one! See above, it's not needed to "support" them, just to stay out of conflict with them. And the term "volume management" as Sun uses it means something other than what AIX (part of JFS admin) and Linux (LVM and DM) usually use. Just so you know if someone gets confused, the term is overloaded. Hopefully me comments on avoiding conflict will be useful.If there's anyone here actually using magicdev or autofs, more information on how to see if it's running and how to configure it to stay away from CD writers would be very much appreciatedI would be happy, to see people working on contributions... Note that if the support is put into e.g. cdrecord.c, it cannot make it into the official version because this would break portability. Volmgt support belongs into the OS specific part of libscg. -- E. Robert Bogusta It seemed like a good idea at the time |