From d6b08ee4b5667772946de3e0f1b8ada2d3d474dc Mon Sep 17 00:00:00 2001 From: tappro Date: Wed, 19 Jul 2006 23:19:33 +0000 Subject: [PATCH] define bit flags for lu_attr and md_attr --- lustre/include/lu_object.h | 16 ++++++++++++++++ lustre/include/md_object.h | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/lustre/include/lu_object.h b/lustre/include/lu_object.h index 101dc7b..9cfdc94 100644 --- a/lustre/include/lu_object.h +++ b/lustre/include/lu_object.h @@ -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 */ diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 69846fa..d621288 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -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; }; -- 1.8.3.1