libgfs2: Add some tables of symbolic constant names
From cebc412778d0963a65b42f3e89dd27bad30ef50f Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Thu, 22 Dec 2011 15:40:59 +0000
Subject: [PATCH] libgfs2: Add some tables of symbolic constant names
This covers metadata types, formats and di_flags. As time goes on, I expect the number of fields in the lgfs2_symbolic to expand.
Signed-off-by Steven Whitehouse <[email protected]>
--- gfs2/libgfs2/libgfs2.h | 11 ++++++++ gfs2/libgfs2/meta.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 77 insertions(+), 1 deletions(-)
gfs2/libgfs2/libgfs2.h +11 -0
@@ -101,6 +101,11 @@ enum lgfs2_meta_type { LGFS2_MT_NR, }; +struct lgfs2_symbolic { +const uint32_t key; +const char *value; +}; +struct lgfs2_metafield {const char *name;const unsigned offset;
@@ -311,6 +316,12 @@ struct metapath {/* meta.c */ extern const struct lgfs2_metadata lgfs2_metadata[];extern const unsigned lgfs2_metadata_size; +extern const struct lgfs2_symbolic lgfs2_metatypes[]; +extern const unsigned lgfs2_metatype_size; +extern const struct lgfs2_symbolic lgfs2_metaformats[]; +extern const unsigned lgfs2_metaformat_size; +extern const struct lgfs2_symbolic lgfs2_di_flags[]; +extern const unsigned lgfs2_di_flag_size;extern int lgfs2_selfcheck (void );/* bitmap.c */
gfs2/libgfs2/meta.c +66 -1
79 lines not on this page · raw message
Signature · 1 line
1.7.4.4
----- Original Message -----
| >From cebc412778d0963a65b42f3e89dd27bad30ef50f Mon Sep 17 00:00:00 | >2001 | From: Steven Whitehouse <[email protected]> | Date: Thu, 22 Dec 2011 15:40:59 +0000 | Subject: [PATCH] libgfs2: Add some tables of symbolic constant names | | This covers metadata types, formats and di_flags. As time goes | on, I expect the number of fields in the lgfs2_symbolic to expand. | | Signed-off-by: Steven Whitehouse <[email protected]> | --- | gfs2/libgfs2/libgfs2.h | 11 ++++++++ | gfs2/libgfs2/meta.c | 67 | +++++++++++++++++++++++++++++++++++++++++++++++- | 2 files changed, 77 insertions(+), 1 deletions(-)
Hi,
ACKed by Bob Peterson <[email protected]>
Regards,
Bob Peterson
Red Hat File Systems