Skip to contentSkip to conversation

autofs updating ghost direcotry for removable devices

DISCUSSION Nathan Huesken 2 participants 3 messages Mar 9, 2009 – Mar 10, 2009 Kernel automounter

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
Quoted 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

#2 lore raw
Quoted 3 lines

man automount(8), snd it a HUP signal.

That is perfect! (plus it works).
Thanks!

Nathan