Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140161146
D22386.id64386.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
831 B
Referenced Files
None
Subscribers
None
D22386.id64386.diff
View Options
Index: head/usr.sbin/makefs/ffs.c
===================================================================
--- head/usr.sbin/makefs/ffs.c
+++ head/usr.sbin/makefs/ffs.c
@@ -728,15 +728,22 @@
dinp->di_atime = st->st_atime;
dinp->di_mtime = st->st_mtime;
dinp->di_ctime = st->st_ctime;
+#if HAVE_STRUCT_STAT_BIRTHTIME
+ dinp->di_birthtime = st->st_birthtime;
+#else
+ dinp->di_birthtime = st->st_ctime;
+#endif
#if HAVE_STRUCT_STAT_ST_MTIMENSEC
dinp->di_atimensec = st->st_atimensec;
dinp->di_mtimensec = st->st_mtimensec;
dinp->di_ctimensec = st->st_ctimensec;
-#endif
#if HAVE_STRUCT_STAT_BIRTHTIME
- dinp->di_birthtime = st->st_birthtime;
dinp->di_birthnsec = st->st_birthtimensec;
+#else
+ dinp->di_birthnsec = st->st_ctimensec;
#endif
+#endif
+
/* not set: di_db, di_ib, di_blocks, di_spare */
membuf = NULL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 22, 12:19 AM (8 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27126189
Default Alt Text
D22386.id64386.diff (831 B)
Attached To
Mode
D22386: makefs: Also set UFS di_birthtime when building on Linux
Attached
Detach File
Event Timeline
Log In to Comment