From: Nathan Scott Date: Tue, 20 Jan 2004 00:31:03 +0000 (+0000) Subject: Update xfs_db to dump out attrs in the security namespace as well. X-Git-Tag: v2.7.0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b0c5771119d18154de48cdbf03594b70f0307c3;p=thirdparty%2Fxfsprogs-dev.git Update xfs_db to dump out attrs in the security namespace as well. --- diff --git a/db/attr.c b/db/attr.c index f9d76e202..f785176c5 100644 --- a/db/attr.c +++ b/db/attr.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. + * Copyright (c) 2000-2001,2004 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as @@ -95,6 +95,9 @@ const field_t attr_leaf_entry_flds[] = { { "root", FLDT_UINT1, OI(LEOFF(flags) + bitsz(__uint8_t) - XFS_ATTR_ROOT_BIT - 1), C1, 0, TYP_NONE }, + { "secure", FLDT_UINT1, + OI(LEOFF(flags) + bitsz(__uint8_t) - XFS_ATTR_SECURE_BIT - 1), C1, 0, + TYP_NONE }, { "local", FLDT_UINT1, OI(LEOFF(flags) + bitsz(__uint8_t) - XFS_ATTR_LOCAL_BIT - 1), C1, 0, TYP_NONE }, diff --git a/db/attrshort.c b/db/attrshort.c index 93778f735..c7c400dba 100644 --- a/db/attrshort.c +++ b/db/attrshort.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. + * Copyright (c) 2000-2001,2004 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as @@ -67,6 +67,9 @@ const field_t attr_sf_entry_flds[] = { { "root", FLDT_UINT1, OI(EOFF(flags) + bitsz(__uint8_t) - XFS_ATTR_ROOT_BIT - 1), C1, 0, TYP_NONE }, + { "secure", FLDT_UINT1, + OI(EOFF(flags) + bitsz(__uint8_t) - XFS_ATTR_SECURE_BIT - 1), C1, 0, + TYP_NONE }, { "name", FLDT_CHARNS, OI(EOFF(nameval)), attr_sf_entry_name_count, FLD_COUNT, TYP_NONE }, { "value", FLDT_CHARNS, attr_sf_entry_value_offset,