]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: define CEPH_SETATTR_*
authorSage Weil <sage@newdream.net>
Tue, 14 Feb 2012 17:06:21 +0000 (09:06 -0800)
committerSage Weil <sage@newdream.net>
Tue, 14 Feb 2012 17:06:32 +0000 (09:06 -0800)
These are also defined internally in ceph_fs.h, so use a guard.  Annoying,
but gives us consistent naming (ceph_*/CEPH_*, not LIBCEPHFS_SETATTR_*).

Signed-off-by: Sage Weil <sage@newdream.net>
src/include/cephfs/libcephfs.h

index 37f6eb9a84c615336cdf8fdbd152184e43e1b941..d7e03b0e133867eafb3e08a375cfa6fe9046be9d 100644 (file)
@@ -42,6 +42,18 @@ struct ceph_mount_info;
 struct ceph_dir_result;
 struct CephContext;
 
+/* setattr mask bits */
+#ifndef CEPH_SETATTR_MODE
+# define CEPH_SETATTR_MODE   1
+# define CEPH_SETATTR_UID    2
+# define CEPH_SETATTR_GID    4
+# define CEPH_SETATTR_MTIME  8
+# define CEPH_SETATTR_ATIME 16
+# define CEPH_SETATTR_SIZE  32
+# define CEPH_SETATTR_CTIME 64
+#endif
+
+
 const char *ceph_version(int *major, int *minor, int *patch);
 
 /* initialization */