]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: expose CEPH_SETATTR_MTIME_NOW and CEPH_SETATTR_ATIME_NOW 24465/head
authorZhu Shangzhong <zhu.shangzhong@zte.com.cn>
Wed, 19 Sep 2018 06:18:29 +0000 (14:18 +0800)
committerPrashant D <pdhange@redhat.com>
Sun, 7 Oct 2018 22:47:38 +0000 (00:47 +0200)
Fixes: http://tracker.ceph.com/issues/35961
Signed-off-by: Zhu Shangzhong <zhu.shangzhong@zte.com.cn>
(cherry picked from commit f39cde345d764d865d504ffd9b60abd5aee90b18)

src/include/ceph_fs.h
src/include/cephfs/libcephfs.h

index b40683db60de4fc9c69f69cf596291e7d2bcb244..f57f780a6e0dbdf5d48c271a21db78693bd4c5f0 100644 (file)
@@ -379,10 +379,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 b6c0f706a419dd8209e9c4bcbd0e9d02f8288c14..cb90130fbce6f2d6750c4187e53908a652b7672e 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