zfsonlinux/zfs — Issue #437: zfs with sharenfs=on not re-exported in umount/mount cycle
Author: dblacknc
Created: 2011-11-06 17:32:43+00:00
State: open

Hopefully not already a dupe somewhere, but here goes... this is zfsonlinux 0.6.0-rc6, CentOS 6.0 x86_64

The Linux NFS exports table appears to only be updated when the sharenfs zfs attribute is manually changed. If I umount a zfs, it's removed from the exports table - no problem there. But when remounted, it's not added back. This is at least a difference from how Solaris behaves and I believe, a bug. /etc/dfs/sharetab also is not being updated.

Example (zfs a/isos is mounted with sharenfs=off):

[root@tex ~]# showmount -e | fgrep a/isos
[root@tex ~]# zfs set sharenfs=on a/isos
[root@tex ~]# showmount -e | fgrep a/isos
/a/isos *
[root@tex ~]# zfs umount a/isos
[root@tex ~]# showmount -e | fgrep a/isos
[root@tex ~]# zfs mount a/isos
[root@tex ~]# showmount -e | fgrep a/isos
*** here a/isos should have reappeared on the export list but didn't, so I re-export it manually...
[root@tex ~]# zfs set sharenfs=on a/isos
[root@tex ~]# showmount -e | fgrep a/isos
/a/isos *
[root@tex ~]#