]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uClient: fill_stat now fills times properly
authorGreg Farnum <gregf@hq.newdream.net>
Tue, 4 Aug 2009 22:00:40 +0000 (15:00 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 5 Aug 2009 22:48:23 +0000 (15:48 -0700)
src/client/Client.cc

index cb17ee0e5350f9c634d3dc13d56ae5c654363536..a4f5da06caeb9948917a9e76a25c73c643c6e0c2 100644 (file)
@@ -3159,9 +3159,9 @@ int Client::fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat, nest_inf
   st->st_nlink = in->nlink;
   st->st_uid = in->uid;
   st->st_gid = in->gid;
-  st->st_ctime = MAX(in->ctime, in->mtime);
-  st->st_atime = in->atime;
-  st->st_mtime = in->mtime;
+  st->st_ctime = MAX(in->ctime.sec(), in->mtime.sec());
+  st->st_atime = in->atime.sec();
+  st->st_mtime = in->mtime.sec();
   if (in->is_dir()) {
     //st->st_size = in->dirstat.size();
     st->st_size = in->rstat.rbytes;