xfs
[Top] [All Lists]

[PATCH 1/2] xfs_db: add CRC information to dquot output

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/2] xfs_db: add CRC information to dquot output
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu, 23 May 2013 22:36:04 +1000
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1369312565-6266-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1369032783-24973-1-git-send-email-david@xxxxxxxxxxxxx> <1369312565-6266-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

When dumping a dqblk, also output the CRC related fields. For
non-CRC filesystems, these fields should always be zero.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 db/dquot.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/db/dquot.c b/db/dquot.c
index daa47a3..35eb0bd 100644
--- a/db/dquot.c
+++ b/db/dquot.c
@@ -48,6 +48,9 @@ const field_t dqblk_flds[] = {
        { "diskdq", FLDT_DISK_DQUOT, OI(DDOFF(diskdq)), C1, 0, TYP_NONE },
        { "fill", FLDT_CHARS, OI(DDOFF(fill)), CI(DDSZC(fill)), FLD_SKIPALL,
          TYP_NONE },
+       { "crc", FLDT_UINT32X, OI(DDOFF(crc)), C1, 0, TYP_NONE },
+       { "lsn", FLDT_UINT64X, OI(DDOFF(lsn)), C1, 0, TYP_NONE },
+       { "uuid", FLDT_UUID, OI(DDOFF(uuid)), C1, 0, TYP_NONE },
        { NULL }
 };
 
-- 
1.7.10.4

<Prev in Thread] Current Thread [Next in Thread>