Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106941035
D38169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
760 B
Referenced Files
None
Subscribers
None
D38169.diff
View Options
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -2792,6 +2792,7 @@
kif->kf_un.kf_file.kf_file_rdev = va.va_rdev;
kif->kf_un.kf_file.kf_file_rdev_freebsd11 =
kif->kf_un.kf_file.kf_file_rdev; /* truncate */
+ kif->kf_un.kf_file.kf_file_nlink = va.va_nlink;
return (0);
}
diff --git a/sys/sys/user.h b/sys/sys/user.h
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -389,7 +389,9 @@
int kf_file_type;
/* Space for future use */
int kf_spareint[3];
- uint64_t kf_spareint64[30];
+ uint64_t kf_spareint64[29];
+ /* Number of references to file. */
+ uint64_t kf_file_nlink;
/* Vnode filesystem id. */
uint64_t kf_file_fsid;
/* File device. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 7:26 PM (2 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725979
Default Alt Text
D38169.diff (760 B)
Attached To
Mode
D38169: Add kf_file_nlink field to kf_file and populate it
Attached
Detach File
Event Timeline
Log In to Comment