# verification-precise

[email protected]:~$ sudo mkdir /nfs.server
[email protected]:~$ sudo mkdir /nfs.client

[email protected]:~$ sudo vi /etc/exports 
[email protected]:~$ sudo service nfs-kernel-server restart

[email protected]:~$ sudo vi /etc/auto.master 
[email protected]:~$ sudo vi /etc/auto.direct

[email protected]:~$ sudo service autofs restart
autofs stop/waiting
autofs start/running, process 2234

[email protected]:~$ cat /etc/auto.direct 
/nfs.client localhost:/nfs.server
#/nfs.client/dir01 localhost:/nfs.server
#/nfs.client/dir02 localhost:/nfs.server

[email protected]:~$ sudo mkdir /nfs.server/dir01
[email protected]:~$ sudo mkdir /nfs.server/dir02

[email protected]:~$ ls /nfs.client/
dir01  dir02
[email protected]:~$ sudo vi /etc/auto.direct 

# change auto.direct

[email protected]:~$ sudo kill -HUP $(pidof automount)
[email protected]:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:29 4 -> /nfs.client
[email protected]:~$ sudo vi /etc/auto.direct 
[email protected]:~$ ls /nfs.client/dir01
dir01  dir02
[email protected]:~$ ls /nfs.client/dir02
dir01  dir02
[email protected]:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:29 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:29 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:29 9 -> /nfs.client/dir01

# final test

[email protected]:~$ sudo kill -HUP $(pidof automount)
[email protected]:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:29 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:29 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:29 9 -> /nfs.client/dir01
[email protected]:~$ sudo kill -HUP $(pidof automount)
[email protected]:~$ sudo ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Sep 29 15:29 10 -> /nfs.client/dir02
lr-x------ 1 root root 64 Sep 29 15:29 4 -> /nfs.client
lr-x------ 1 root root 64 Sep 29 15:29 9 -> /nfs.client/dir01

# verification-done-precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1316125

Title:
  Autofs leak file descriptors when reloaded (-HUP) and daemon may stop
  working on high # of shares/reloads

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1316125/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to