aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-06-23 15:51:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-06-23 15:51:43 +0000
commit0a301f33306c07e629a2423827238aaef85f5d68 (patch)
tree356a93d9530c6b5058bdc9ff044bc80c21e57ba9
parent3d945604ef8e1aaa49e153d82821fb4c6c1e67f2 (diff)
makefs cd9660: Populate creation time stamps in RockRidge extensions
Differential Revision: https://reviews.freebsd.org/D57527
-rw-r--r--usr.sbin/makefs/cd9660/iso9660_rrip.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/makefs/cd9660/iso9660_rrip.c b/usr.sbin/makefs/cd9660/iso9660_rrip.c
index 31c6e38a96fe..ee84407e1344 100644
--- a/usr.sbin/makefs/cd9660/iso9660_rrip.c
+++ b/usr.sbin/makefs/cd9660/iso9660_rrip.c
@@ -740,24 +740,29 @@ cd9660node_rrip_nm(struct ISO_SUSP_ATTRIBUTES *p, cd9660node *file_node)
int
cd9660node_rrip_tf(struct ISO_SUSP_ATTRIBUTES *p, fsnode *_node)
{
- p->attr.rr_entry.TF.flags[0] = TF_MODIFY | TF_ACCESS | TF_ATTRIBUTES;
+ p->attr.rr_entry.TF.flags[0] = TF_CREATION | TF_MODIFY | TF_ACCESS |
+ TF_ATTRIBUTES;
p->attr.rr_entry.TF.h.length[0] = 5;
p->attr.rr_entry.TF.h.version[0] = 1;
/*
- * Need to add creation time, backup time,
+ * Need to add backup time,
* expiration time, and effective time.
*/
cd9660_time_915(p->attr.rr_entry.TF.timestamp,
- _node->inode->st.st_mtime);
+ _node->inode->st.st_birthtime);
p->attr.rr_entry.TF.h.length[0] += 7;
cd9660_time_915(p->attr.rr_entry.TF.timestamp + 7,
- _node->inode->st.st_atime);
+ _node->inode->st.st_mtime);
p->attr.rr_entry.TF.h.length[0] += 7;
cd9660_time_915(p->attr.rr_entry.TF.timestamp + 14,
+ _node->inode->st.st_atime);
+ p->attr.rr_entry.TF.h.length[0] += 7;
+
+ cd9660_time_915(p->attr.rr_entry.TF.timestamp + 21,
_node->inode->st.st_ctime);
p->attr.rr_entry.TF.h.length[0] += 7;
return 1;