Page MenuHomeFreeBSD

D8418.1794807760.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D8418.1794807760.diff

Index: head/usr.sbin/makefs/Makefile
===================================================================
--- head/usr.sbin/makefs/Makefile
+++ head/usr.sbin/makefs/Makefile
@@ -20,7 +20,6 @@
.include "${SRCDIR}/ffs/Makefile.inc"
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
-CFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1
.PATH: ${SRCTOP}/contrib/mtree
CFLAGS+=-I${SRCTOP}/contrib/mtree
Index: head/usr.sbin/makefs/ffs.c
===================================================================
--- head/usr.sbin/makefs/ffs.c
+++ head/usr.sbin/makefs/ffs.c
@@ -666,9 +666,7 @@
#if HAVE_STRUCT_STAT_ST_FLAGS
dinp->di_flags = cur->inode->st.st_flags;
#endif
-#if HAVE_STRUCT_STAT_ST_GEN
- dinp->di_gen = cur->inode->st.st_gen;
-#endif
+ dinp->di_gen = random();
dinp->di_uid = cur->inode->st.st_uid;
dinp->di_gid = cur->inode->st.st_gid;
@@ -716,9 +714,7 @@
#if HAVE_STRUCT_STAT_ST_FLAGS
dinp->di_flags = cur->inode->st.st_flags;
#endif
-#if HAVE_STRUCT_STAT_ST_GEN
- dinp->di_gen = cur->inode->st.st_gen;
-#endif
+ dinp->di_gen = random();
dinp->di_uid = cur->inode->st.st_uid;
dinp->di_gid = cur->inode->st.st_gid;

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 16, 5:42 AM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41762856
Default Alt Text
D8418.1794807760.diff (1 KB)

Event Timeline