Whamcloud - gitweb
define bit flags for lu_attr and md_attr
authortappro <tappro>
Wed, 19 Jul 2006 23:19:33 +0000 (23:19 +0000)
committertappro <tappro>
Wed, 19 Jul 2006 23:19:33 +0000 (23:19 +0000)
lustre/include/lu_object.h
lustre/include/md_object.h

index 101dc7b..9cfdc94 100644 (file)
@@ -322,6 +322,22 @@ enum lu_object_flags {
 /*
  * Common object attributes.
  */
+/* valid flags */
+enum la_valid {
+        LA_ATIME  = OBD_MD_FLATIME,
+        LA_MTIME  = OBD_MD_FLMTIME,
+        LA_CTIME  = OBD_MD_FLCTIME,
+        LA_SIZE   = OBD_MD_FLSIZE,
+        LA_BLOCKS = OBD_MD_FLBLOCKS,
+        LA_MODE   = OBD_MD_FLMODE,
+        LA_TYPE   = OBD_MD_FLTYPE,
+        LA_UID    = OBD_MD_FLUID,
+        LA_GID    = OBD_MD_FLGID,
+        LA_FLAGS  = OBD_MD_FLFLAGS,
+        LA_NLINK  = OBD_MD_FLNLINK,
+        LA_RDEV   = OBD_MD_FLRDEV,
+};
+
 struct lu_attr {
         __u64          la_size;   /* size in bytes */
         __u64          la_mtime;  /* modification time in seconds since Epoch */
index 69846fa..d621288 100644 (file)
@@ -45,7 +45,15 @@ struct md_device;
 struct md_device_operations;
 struct md_object;
 
+
+/* metadata attributes */
+enum ma_valid {
+        MA_INODE = (1 << 0),
+        MA_LOV   = (1 << 1)
+};
+
 struct md_attr {
+        __u64          ma_valid;
         struct lu_attr ma_attr;
 };