Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174577049
D6254.id15999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
D6254.id15999.diff
View Options
Index: sys/fs/nfsclient/nfs_clvnops.c
===================================================================
--- sys/fs/nfsclient/nfs_clvnops.c
+++ sys/fs/nfsclient/nfs_clvnops.c
@@ -1668,7 +1668,11 @@
KASSERT(vrefcnt(vp) > 0, ("nfs_remove: bad v_usecount"));
if (vp->v_type == VDIR)
error = EPERM;
- else if (vrefcnt(vp) == 1 || (np->n_sillyrename &&
+ /*
+ * Send the remove RPC if not in-use, or in-use with >1 links, or it
+ * has a silly rename with >1 links.
+ */
+ else if (vrefcnt(vp) == 1 || ((vrefcnt(vp) > 1 || np->n_sillyrename) &&
VOP_GETATTR(vp, &vattr, cnp->cn_cred) == 0 &&
vattr.va_nlink > 1)) {
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 5, 8:25 AM (15 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40231857
Default Alt Text
D6254.id15999.diff (638 B)
Attached To
Mode
D6254: NFS remove: Send the remove RPC when a vnode is in-use with more than 1 link.
Attached
Detach File
Event Timeline
Log In to Comment