# HG changeset patch
# User OGAWA Hirofumi <[EMAIL PROTECTED]>
# Date 1226380733 -32400
# Node ID 55013c67b722e7b218c348f7cda68c766c62fd31
# Parent 24f3b0f20899b2c5ad5554b7512f647f75c5d3be
Convert more timestamp to high resolution in tux3fuse
diff -r 24f3b0f20899 -r 55013c67b722 user/tux3fuse.c
--- a/user/tux3fuse.c Tue Nov 11 14:17:47 2008 +0900
+++ b/user/tux3fuse.c Tue Nov 11 14:18:53 2008 +0900
@@ -84,9 +84,24 @@
.attr = {
.st_ino = inode->inum,
.st_mode = inode->i_mode,
+#if 1
+ .st_atim = {
+ .tv_sec = high32(inode->i_atime),
+ .tv_nsec = millionths(inode->i_atime) *
1000,
+ },
+ .st_mtim = {
+ .tv_sec = high32(inode->i_mtime),
+ .tv_nsec = millionths(inode->i_mtime) *
1000,
+ },
+ .st_ctim = {
+ .tv_sec = high32(inode->i_ctime),
+ .tv_nsec = millionths(inode->i_ctime) *
1000,
+ },
+#else
.st_atime = high32(inode->i_atime),
.st_mtime = high32(inode->i_mtime),
.st_ctime = high32(inode->i_ctime),
+#endif
.st_size = inode->i_size,
.st_uid = inode->i_uid,
.st_gid = inode->i_gid,
@@ -169,9 +184,24 @@
.attr = {
.st_ino = inode->inum,
.st_mode = inode->i_mode,
+#if 1
+ .st_atim = {
+ .tv_sec = high32(inode->i_atime),
+ .tv_nsec = millionths(inode->i_atime) *
1000,
+ },
+ .st_mtim = {
+ .tv_sec = high32(inode->i_mtime),
+ .tv_nsec = millionths(inode->i_mtime) *
1000,
+ },
+ .st_ctim = {
+ .tv_sec = high32(inode->i_ctime),
+ .tv_nsec = millionths(inode->i_ctime) *
1000,
+ },
+#else
.st_atime = high32(inode->i_atime),
.st_mtime = high32(inode->i_mtime),
.st_ctime = high32(inode->i_ctime),
+#endif
.st_size = inode->i_size,
.st_uid = inode->i_uid,
.st_gid = inode->i_gid,
--
OGAWA Hirofumi <[EMAIL PROTECTED]>
_______________________________________________
Tux3 mailing list
[email protected]
http://tux3.org/cgi-bin/mailman/listinfo/tux3