summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-06-27 18:14:43 +0200
committerJeremy Allison <jra@samba.org>2019-07-01 21:43:23 +0000
commitdf4a380d9f459dcdd7e1edab8711b36af0cac09a (patch)
treea812ffa5264ef2d2694669a578d97a941c0131db /source3/include
parentd18bdc1c43b8573582bd77d153cd514f881a69b9 (diff)
downloadsamba-df4a380d9f459dcdd7e1edab8711b36af0cac09a.tar.gz
s3: add st_ex_itime to struct stat_ex
st_ex_itime is an immutable original birth time aka instantiation time. Set when a file is created, never changes thereafter. May not be set by the client. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h6
-rw-r--r--source3/include/vfs.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index ec486be6efa..5a9150fe2fe 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -192,6 +192,7 @@ typedef uint64_t br_off;
/* Is birthtime real, or was it calculated ? */
#define ST_EX_IFLAG_CALCULATED_BTIME (1 << 0)
+#define ST_EX_IFLAG_CALCULATED_ITIME (1 << 1)
/*
* Type for stat structure.
@@ -210,6 +211,11 @@ struct stat_ex {
struct timespec st_ex_mtime;
struct timespec st_ex_ctime;
struct timespec st_ex_btime; /* birthtime */
+ /*
+ * Immutable original birth time aka instantiation time. Set when a file
+ * is created, never changes thereafter. May not be set by the client.
+ */
+ struct timespec st_ex_itime; /* instantiation time */
blksize_t st_ex_blksize;
blkcnt_t st_ex_blocks;
diff --git a/source3/include/vfs.h b/source3/include/vfs.h
index ecac793b93d..17cbf32ec19 100644
--- a/source3/include/vfs.h
+++ b/source3/include/vfs.h
@@ -263,6 +263,7 @@
/* Version 41 - Remove SMB_VFS_BRL_CANCEL_WINDOWS */
/* Version 41 - Remove unused st_ex_mask from struct stat_ex */
/* Version 41 - convert struct stat_ex.st_ex_calculated_birthtime to flags */
+/* Version 41 - add st_ex_itime to struct stat_ex */
#define SMB_VFS_INTERFACE_VERSION 41