From 1a857ce8f77234c5b661bc09a96d6036767f1c78 Mon Sep 17 00:00:00 2001 From: Bo Branten Date: Mon, 2 Sep 2024 13:52:49 +0200 Subject: [PATCH] new fields _extra to support year 2038 and nano second file times --- Ext4Fsd/include/linux/fs.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Ext4Fsd/include/linux/fs.h b/Ext4Fsd/include/linux/fs.h index d3540db..2d689fa 100644 --- a/Ext4Fsd/include/linux/fs.h +++ b/Ext4Fsd/include/linux/fs.h @@ -47,7 +47,6 @@ static inline kdev_t to_kdev_t(int dev) return 0; } - // // file system specific structures // @@ -79,9 +78,10 @@ struct inode { __u32 i_ino; /* inode number */ loff_t i_size; /* size */ __u32 i_atime; /* Access time */ - __u32 i_ctime; /* Creation time */ + __u32 i_ctime; /* Inode change time */ __u32 i_mtime; /* Modification time */ - __u32 i_dtime; /* Deletion Time */ + __u32 i_crtime; /* File creation time */ + __u32 i_dtime; /* Deletion time */ __u64 i_blocks; __u32 i_block[15]; umode_t i_mode; /* mode */ @@ -97,6 +97,10 @@ struct inode { void *i_priv; /* EXT2_MCB */ __u16 i_extra_isize; /* extra fields' size */ + __u32 i_atime_extra; /* extra Access time (nsec << 2 | epoch) */ + __u32 i_ctime_extra; /* extra Change time (nsec << 2 | epoch) */ + __u32 i_mtime_extra; /* extra Modification time (nsec << 2 | epoch) */ + __u32 i_crtime_extra; /* extra File creation time (nsec << 2 | epoch) */ __u64 i_file_acl; }; @@ -113,7 +117,6 @@ struct inode { #define I_DIRTY (I_DIRTY_SYNC | I_DIRTY_DATASYNC | I_DIRTY_PAGES) - struct dentry { atomic_t d_count; struct {