Skip to contentSkip to conversation

Add mountpoints to mastermap dynamically.

DISCUSSION Stef Bon 3 participants 4 messages Apr 28, 2008 Kernel automounter

lore
Share & tools
lore

Stef Bon

author
#0 lore raw

Hello,

again a question.

The construction I'm working on does add a mountpoint dynamically to an existing map.
After added (first some checking the mountpoint is not already included) a reload is
done with the running automount (HUP signal). The same after removing a mountpoint.

It works very good, but I'm wondering, is this the way to do this?? Isn't there a autofsctl program???

Stef Bon

#1 lore raw
Quoted 6 lines · Stef Bon

Hello,

again a question.

The construction I'm working on does add a mountpoint dynamically to an existing map.

The subject says you're adding a new entry to the master map. This sentence sounds like you're adding an entry to an existing map. The second should be caught automatically by the daemon, so no need to reload.

Quoted 7 lines

After added (first some checking the mountpoint is not already included) a reload is
done with the running automount (HUP signal). The same after removing a mountpoint.

It works very good, but I'm wondering, is this the way to do this?? Isn't there a autofsctl program???

You could do, 'service autofs reload' instead. Or maybe you should investigate direct maps. I'm not sure, since I know very little of your setup.

Cheers,
Jeff

author
#2 lore raw
Quoted 7 lines · Jeff Moyer
Quoted 4 lines · Stef Bon

Hello,

again a question.

Quoted 9 lines
Quoted 3 lines

The construction I'm working on does add a mountpoint dynamically to an existing map.

The subject says you're adding a new entry to the master map. This sentence sounds like you're adding an entry to an existing map. The second should be caught automatically by the daemon, so no need to reload.

Ok,

I mean the first: adding a new entry to the master map.

Quoted 6 lines
Quoted 6 lines

After added (first some checking the mountpoint is not already included) a reload is
done with the running automount (HUP signal). The same after removing a mountpoint.

Quoted 8 lines
Quoted 3 lines

It works very good, but I'm wondering, is this the way to do this?? Isn't there a autofsctl program???

You could do, 'service autofs reload' instead. Or maybe you should investigate direct maps. I'm not sure, since I know very little of your setup.

Yes, but my system does not know a "service" command. (LFS/BLFS). I think this command
service is typical Red Hat isn't it?

I have to give the init script the command "reload" directly:

/etc/rc.d/init.d/autofs reload

It has the same effect.

Stef Bon

maintainer
#3 lore raw
In reply to Stef Bon
Quoted 11 lines · Stef Bon

Hello,

again a question.

The construction I'm working on does add a mountpoint dynamically to an existing map.
After added (first some checking the mountpoint is not already included) a reload is
done with the running automount (HUP signal). The same after removing a mountpoint.

Quoted 2 lines

It works very good, but I'm wondering, is this the way to do this?? Isn't there a autofsctl program???

Not yet.
I have plans of building on the dynamic log level implementation that Jeff has done, but were still bug chasing so it's not a high priority.

Ian