Page MenuHomeFreeBSD

D38169.diff
No OneTemporary

D38169.diff

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

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)

Event Timeline