autofs updating ghost direcotry for removable devices
Hi,
I am using autofs with the ghost parameter.
What I would like is autofs to update the "ghost directories" according to removable devices plugged in or removed.
I found this:
http://code.google.com/p/hal-autofs/
This python program rewrites the autofs config file when a device is plugged in or removed. Very good.
Now I need to figure out how to make autofs aware of these changes. I could just restart autofs (I first need to refresh my python to do that).
I wonder:
Could I get into trouble when restarting autofs while a autofs managed device is mounted?
Does anybody have a better Idea of how to do what I want to do?
Thanks!
Nathan
Ian Kent
maintainerQuoted 14 lines · Nathan Huesken
Hi,
I am using autofs with the ghost parameter.
What I would like is autofs to update the "ghost directories" according to removable devices plugged in or removed.
I found this:
http://code.google.com/p/hal-autofs/This python program rewrites the autofs config file when a device is plugged in or removed. Very good.
Now I need to figure out how to make autofs aware of these changes. I could just restart autofs (I first need to refresh my python to do that).
Quoted 4 lines
I wonder:
Could I get into trouble when restarting autofs while a autofs managed device is mounted?
Possibly, depends if a mount is in use.
Quoted 2 lines
Does anybody have a better Idea of how to do what I want to do?
man automount(8), snd it a HUP signal.
Quoted 8 lines
Thanks!
Nathan_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Quoted 3 lines
man automount(8), snd it a HUP signal.
That is perfect! (plus it works).
Thanks!
Nathan