From: Zhu Shangzhong Date: Wed, 19 Sep 2018 06:18:29 +0000 (+0800) Subject: libcephfs: expose CEPH_SETATTR_MTIME_NOW and CEPH_SETATTR_ATIME_NOW X-Git-Tag: v14.0.1~192^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f39cde345d764d865d504ffd9b60abd5aee90b18;p=ceph.git libcephfs: expose CEPH_SETATTR_MTIME_NOW and CEPH_SETATTR_ATIME_NOW Fixes: http://tracker.ceph.com/issues/35961 Signed-off-by: Zhu Shangzhong --- diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index 9e7cae8eca271..bf66e1476fbd8 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -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) /* diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 99f5193541989..a6f259dfefeaa 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -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