From: Jeff Layton Date: Wed, 9 May 2007 14:19:33 +0000 (-0400) Subject: nfs-utils: have mountd hold open etab file to force inode number to change X-Git-Tag: nfs-utils-1-1-0~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=fd9097110f74f39bce89ec3a341fd9b686a68719;hp=fd9097110f74f39bce89ec3a341fd9b686a68719 nfs-utils: have mountd hold open etab file to force inode number to change This patch changes mountd to hold the etab file open so that when it's changed by exportfs, the inode number should change. We then change auth_reload to reload the file based on whether st_ino is different from the last time it was checked. It also changes auth_reload to maintain a static counter value and return it instead of a timestamp and fixes up get_exportlist accordingly. Finally, it adds some comments to xtab_write to warn people about editing the etab in place. Signed-off-by: Jeff Layton Signed-off-by: NeilBrown ---