Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153578300
D21731.id62368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
979 B
Referenced Files
None
Subscribers
None
D21731.id62368.diff
View Options
Index: head/sys/fs/msdosfs/msdosfs_denode.c
===================================================================
--- head/sys/fs/msdosfs/msdosfs_denode.c
+++ head/sys/fs/msdosfs/msdosfs_denode.c
@@ -79,7 +79,7 @@
a = arg;
de = VTODE(vp);
- return (de->de_inode != *a);
+ return (de->de_inode != *a) || (de->de_refcnt <= 0);
}
/*
@@ -124,8 +124,9 @@
* address of "." entry. For root dir (if not FAT32) use cluster
* MSDOSFSROOT, offset MSDOSFSROOT_OFS
*
- * NOTE: The check for de_refcnt > 0 below insures the denode being
- * examined does not represent an unlinked but still open file.
+ * NOTE: de_vncmpf will explicitly skip any denodes that do not have
+ * a de_refcnt > 0. This insures that that we do not attempt to use
+ * a denode that represents an unlinked but still open file.
* These files are not to be accessible even when the directory
* entry that represented the file happens to be reused while the
* deleted file is still open.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 2:01 AM (1 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31994751
Default Alt Text
D21731.id62368.diff (979 B)
Attached To
Mode
D21731: msdosfs: do not deget unlinked denodes
Attached
Detach File
Event Timeline
Log In to Comment