[Pvfs2-cvs] commit by kunkel in pvfs2/src/proto: pvfs2-attr.h
endecode-funcs.h
CVS commit program
cvs at parl.clemson.edu
Sat Dec 2 06:20:39 EST 2006
Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb1:/tmp/cvs-serv18213/src/proto
Modified Files:
Tag: kunkel-hint-branch
pvfs2-attr.h endecode-funcs.h
Log Message:
Upgrade to current CVS version
Index: pvfs2-attr.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/pvfs2-attr.h,v
diff -p -u -r1.39 -r1.39.2.1
--- pvfs2-attr.h 1 Aug 2006 00:27:15 -0000 1.39
+++ pvfs2-attr.h 2 Dec 2006 11:20:39 -0000 1.39.2.1
@@ -50,6 +50,17 @@
#define PVFS_ATTR_DIR_ALL \
(PVFS_ATTR_DIR_DIRENT_COUNT | PVFS_ATTR_DIR_HINT)
+/* extended hint attributes for a metafile object */
+struct PVFS_metafile_hint_s
+{
+ PVFS_flags flags;
+};
+typedef struct PVFS_metafile_hint_s PVFS_metafile_hint;
+#ifdef __PINT_REQPROTO_ENCODE_FUNCS_C
+endecode_fields_1(PVFS_metafile_hint,
+ PVFS_flags, flags)
+#endif
+
/* attributes specific to metadata objects */
struct PVFS_metafile_attr_s
{
@@ -60,6 +71,7 @@ struct PVFS_metafile_attr_s
/* list of datafiles */
PVFS_handle *dfile_array;
uint32_t dfile_count;
+ PVFS_metafile_hint hint;
};
typedef struct PVFS_metafile_attr_s PVFS_metafile_attr;
#ifdef __PINT_REQPROTO_ENCODE_FUNCS_C
@@ -75,6 +87,7 @@ typedef struct PVFS_metafile_attr_s PVFS
encode_skip4(pptr,); \
for (dfiles_i=0; dfiles_i<(x)->dfile_count; dfiles_i++) \
encode_PVFS_handle(pptr, &(x)->dfile_array[dfiles_i]); \
+ encode_PVFS_metafile_hint(pptr, &(x)->hint); \
} while (0)
#define decode_PVFS_metafile_attr_dfiles(pptr,x) do { int dfiles_i; \
decode_uint32_t(pptr, &(x)->dfile_count); \
@@ -83,6 +96,7 @@ typedef struct PVFS_metafile_attr_s PVFS
* sizeof(*(x)->dfile_array)); \
for (dfiles_i=0; dfiles_i<(x)->dfile_count; dfiles_i++) \
decode_PVFS_handle(pptr, &(x)->dfile_array[dfiles_i]); \
+ decode_PVFS_metafile_hint(pptr, &(x)->hint); \
} while (0)
#endif
Index: endecode-funcs.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/endecode-funcs.h,v
diff -p -u -r1.18.6.1 -r1.18.6.2
--- endecode-funcs.h 25 Sep 2006 12:40:08 -0000 1.18.6.1
+++ endecode-funcs.h 2 Dec 2006 11:20:39 -0000 1.18.6.2
@@ -92,6 +92,7 @@
*(pptr) += roundup8(4 + len + 1); \
} while (0)
+
/* keyvals; a lot like strings; decoding points existing character data */
/* BTW we are skipping the read_sz field - keep that in mind */
#define encode_PVFS_ds_keyval(pptr,pbuf) do { \
More information about the Pvfs2-cvs
mailing list