]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: expose CEPH_SETATTR_MTIME_NOW and CEPH_SETATTR_ATIME_NOW 24170/head
authorZhu Shangzhong <zhu.shangzhong@zte.com.cn>
Wed, 19 Sep 2018 06:18:29 +0000 (14:18 +0800)
committerZhu Shangzhong <zhu.shangzhong@zte.com.cn>
Thu, 20 Sep 2018 08:00:53 +0000 (16:00 +0800)
Fixes: http://tracker.ceph.com/issues/35961
Signed-off-by: Zhu Shangzhong <zhu.shangzhong@zte.com.cn>
src/include/ceph_fs.h
src/include/cephfs/libcephfs.h

index 9e7cae8eca271f5d771ef764de3b276103ca1790..bf66e1476fbd8af2bd6d300028f06ab12f69e95e 100644 (file)
@@ -381,10 +381,10 @@ extern const char *ceph_mds_op_name(int op);
 #define CEPH_SETATTR_ATIME     (1 << 4)
 #define CEPH_SETATTR_SIZE      (1 << 5)
 #define CEPH_SETATTR_CTIME     (1 << 6)
-#define CEPH_SETATTR_BTIME     (1 << 9)
-#endif
 #define CEPH_SETATTR_MTIME_NOW (1 << 7)
 #define CEPH_SETATTR_ATIME_NOW (1 << 8)
+#define CEPH_SETATTR_BTIME     (1 << 9)
+#endif
 #define CEPH_SETATTR_KILL_SGUID        (1 << 10)
 
 /*
index 99f5193541989e490ace6e7193395a1ffbaf60e1..a6f259dfefeaa17ecac618e57b78b3eaa720d55a 100644 (file)
@@ -116,6 +116,8 @@ struct CephContext;
 # define CEPH_SETATTR_ATIME    16
 # define CEPH_SETATTR_SIZE     32
 # define CEPH_SETATTR_CTIME    64
+# define CEPH_SETATTR_MTIME_NOW        128
+# define CEPH_SETATTR_ATIME_NOW        256
 # define CEPH_SETATTR_BTIME    512
 #endif