Skip to contentSkip to conversation

nfsd: fsnotify on rmdir under nfsd/clients/

PATCH Applied J. Bruce Fields 2 participants 2 messages Mar 19, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: fsnotify on rmdir under nfsd/clients/

From: "J. Bruce Fields" <[email protected]>

Userspace should be able to monitor nfsd/clients/ to see when clients come and go, but we're failing to send fsnotify events.

---
 fs/nfsd/nfsctl.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfsd/nfsctl.c +1 -0
index e109a1007704..3bb2db947d29 100644
@@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
 	dget(dentry);
 	ret = simple_rmdir(dir, dentry);
 	WARN_ON_ONCE(ret);
+	fsnotify_rmdir(dir, dentry);
 	d_delete(dentry);
 	inode_unlock(dir);
 }
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 11 lines · On Mar 19, 2020, at 11:30 AM, [email protected] wrote:

From: "J. Bruce Fields" <[email protected]>

Userspace should be able to monitor nfsd/clients/ to see when clients come and go, but we're failing to send fsnotify events.

Applied to nfsd-5.7, thanks!

Quoted 19 lines

---
fs/nfsd/nfsctl.c | 1 +

1 file changed, 1 insertion(+)
fs/nfsd/nfsctl.c +1 -0
index e109a1007704..3bb2db947d29 100644
@@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
 	dget(dentry);
 	ret = simple_rmdir(dir, dentry);
 	WARN_ON_ONCE(ret);
+	fsnotify_rmdir(dir, dentry);
 	d_delete(dentry);
 	inode_unlock(dir);
 }
Signature · 1 line
2.25.1

--
Chuck Lever