]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: print setattr'd values with MClientRequest
authorSage Weil <sage@newdream.net>
Wed, 3 Feb 2010 18:30:03 +0000 (10:30 -0800)
committerSage Weil <sage@newdream.net>
Wed, 3 Feb 2010 18:30:03 +0000 (10:30 -0800)
src/messages/MClientRequest.h

index 7bb07910ae7386edcac20b7807fc9f0390aba746..8a707f91fd8b5af515cb15759a81ef53f1ebc09d 100644 (file)
@@ -178,12 +178,18 @@ public:
     if (head.op == CEPH_MDS_OP_GETATTR)
       out << " " << ccap_string(head.args.getattr.mask);
     if (head.op == CEPH_MDS_OP_SETATTR) {
-      if (head.args.setattr.mask & CEPH_SETATTR_MODE) out << " mode";
-      if (head.args.setattr.mask & CEPH_SETATTR_UID) out << " uid";
-      if (head.args.setattr.mask & CEPH_SETATTR_GID) out << " gid";
-      if (head.args.setattr.mask & CEPH_SETATTR_SIZE) out << " size";
-      if (head.args.setattr.mask & CEPH_SETATTR_MTIME) out << " mtime";
-      if (head.args.setattr.mask & CEPH_SETATTR_ATIME) out << " atime";
+      if (head.args.setattr.mask & CEPH_SETATTR_MODE)
+       out << " mode=0" << ios::oct << head.args.setattr.mode << ios::dec;
+      if (head.args.setattr.mask & CEPH_SETATTR_UID)
+       out << " uid=" << head.args.setattr.uid;
+      if (head.args.setattr.mask & CEPH_SETATTR_GID)
+       out << " gid=" << head.args.setattr.gid;
+      if (head.args.setattr.mask & CEPH_SETATTR_SIZE)
+       out << " size=" << head.args.setattr.size;
+      if (head.args.setattr.mask & CEPH_SETATTR_MTIME)
+       out << " mtime=" << utime_t(head.args.setattr.mtime);
+      if (head.args.setattr.mask & CEPH_SETATTR_ATIME)
+       out << " atime=" << utime_t(head.args.setattr.atime);
     }
     //if (!get_filepath().empty()) 
     out << " " << get_filepath();