# HG changeset patch
# User OGAWA Hirofumi <[EMAIL PROTECTED]>
# Date 1226387746 -32400
# Node ID d680e7bc61353f6c4de5ef24e30b4f5d8245150d
# Parent  6b615de4d62bea052bb57474e754233f911edf1e
Convert more timestamp to high resolution in tux3fuse

diff -r 6b615de4d62b -r d680e7bc6135 user/tux3fuse.c
--- a/user/tux3fuse.c   Tue Nov 11 16:14:41 2008 +0900
+++ b/user/tux3fuse.c   Tue Nov 11 16:15:46 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

Reply via email to