Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libext2fs: add support for the SOURCE_DATE_EPOCH environment variable
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
ext2fsP.h
diff --git
a/lib/ext2fs/ext2fsP.h
b/lib/ext2fs/ext2fsP.h
index
0687384
..
d1f2105
100644
(file)
--- a/
lib/ext2fs/ext2fsP.h
+++ b/
lib/ext2fs/ext2fsP.h
@@
-26,6
+26,13
@@
static inline int ext2fsP_is_disk_device(mode_t mode)
#endif
}
+static inline time_t ext2fsP_get_time(ext2_filsys fs)
+{
+ if (fs->now || (fs->flags2 & EXT2_FLAG2_USE_FAKE_TIME))
+ return fs->now;
+ return time(NULL);
+}
+
/*
* Badblocks list
*/