diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-04-06 02:11:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-04-08 03:09:01 -0700 |
commit | 832fedddd215d8902b8a7fba1e06b4329ea2e651 (patch) | |
tree | fbfd0c1672fc151060d3f61e1fe0e18afefa04cf /libglusterfs/src | |
parent | 0f892d517b1907e2bd8cb3ac26699e2027d67fe6 (diff) |
performance/io-cache: make use of nano second resolution of mtime during cache validation.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 801 (Direct io-mode support and related changes in caching translators.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=801
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/protocol.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index 3b5b3087f9f..67595179a91 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -75,9 +75,8 @@ gf_stat_to_stat (struct gf_stat *gf_stat, struct stat *stat) stat->st_blksize = ntoh32 (gf_stat->blksize); stat->st_blocks = ntoh64 (gf_stat->blocks); stat->st_atime = ntoh32 (gf_stat->atime); - stat->st_mtime = ntoh32 (gf_stat->mtime); - stat->st_ctime = ntoh32 (gf_stat->ctime); - /* TODO: handle nsec */ + stat->st_mtime = ntoh32 (gf_stat->mtime); + stat->st_ctime = ntoh32 (gf_stat->ctime); } @@ -96,8 +95,7 @@ gf_stat_from_stat (struct gf_stat *gf_stat, struct stat *stat) gf_stat->blocks = hton64 (stat->st_blocks); gf_stat->atime = hton32 (stat->st_atime); gf_stat->mtime = hton32 (stat->st_mtime); - gf_stat->ctime = hton32 (stat->st_ctime); - /* TODO: handle nsec */ + gf_stat->ctime = hton32 (stat->st_ctime); } |