From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: sandeen@redhat.com, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/5] xfs_db: print structure padding fields consistently
Date: Thu, 30 Nov 2017 14:01:18 -0800 [thread overview]
Message-ID: <20171130220118.GM21412@magnolia> (raw)
In-Reply-To: <a19255b1-f186-2db1-0a87-ff432ac6b7fe@sandeen.net>
On Thu, Nov 30, 2017 at 03:57:16PM -0600, Eric Sandeen wrote:
>
>
> On 11/30/17 3:51 PM, Darrick J. Wong wrote:
> > On Thu, Nov 30, 2017 at 03:37:54PM -0600, Eric Sandeen wrote:
> >> On 11/17/17 1:56 PM, Darrick J. Wong wrote:
> >>> From: Darrick J. Wong <darrick.wong@oracle.com>
> >>>
> >>> We are very inconsistent about how we print padding fields in on-disk
> >>> structures -- sometimes we hide it from printall, sometimes we deviate
> >>> from unsigned hex values, etc. Make this all consistent -- never hide
> >>> padding values, always print them as unsigned hex integers.
> >>
> >> I'm not sure I see the point to cluttering up structure printing
> >> with padding, and would prefer to hide them /all/ by default (and
> >> set them all to hex printing when explicitly asked for).
> >>
> >> Consistency is good but I'm not sure we need to consistently print
> >> values that are never even used...?
> >
> > Ok. Will you take a patch that changes them all to FLD_SKIPALL?
>
> and sets them all to hex type, and adds missing ones? Sure.
>
> If you love the idea of printing padding or need it, that's ok,
> I'd just like a little justification for the extra clutter,
> if you need it. :)
Originally it was so that the fuzz tests could test whether or not
fsck/scrub notice garbage in the padding fields but then I observed that
we don't consistently write zeroes to padd fields, which means that we
can't check them in any meaningful manner.
--D
> Thanks,
> -Eric
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-11-30 22:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-17 19:56 [PATCH 0/5] xfsprogs: 4.15 rollup Darrick J. Wong
2017-11-17 19:56 ` [PATCH 1/5] xfs_db: print structure padding fields consistently Darrick J. Wong
2017-11-30 21:37 ` Eric Sandeen
2017-11-30 21:51 ` Darrick J. Wong
2017-11-30 21:57 ` Eric Sandeen
2017-11-30 22:01 ` Darrick J. Wong [this message]
2017-12-04 23:54 ` [PATCH 1/5 V2] " Eric Sandeen
2017-12-04 23:56 ` Darrick J. Wong
2017-11-17 19:56 ` [PATCH 2/5] xfs_db: add missing padding fields Darrick J. Wong
2017-12-04 23:54 ` [PATCH 2/5 V2] " Eric Sandeen
2017-12-04 23:56 ` Darrick J. Wong
2017-11-17 19:56 ` [PATCH 3/5] xfs_io: pull xfs errortag definitions from libxfs Darrick J. Wong
2017-11-30 21:40 ` Eric Sandeen
2017-11-17 19:57 ` [PATCH 4/5] xfs_io: provide an interface to the scrub ioctls Darrick J. Wong
2017-12-01 3:46 ` Eric Sandeen
2017-12-01 17:02 ` Darrick J. Wong
2017-12-01 16:06 ` Eric Sandeen
2017-12-01 17:03 ` Darrick J. Wong
2017-12-01 19:02 ` [PATCH v2 " Darrick J. Wong
2017-12-04 21:19 ` Eric Sandeen
2017-11-17 19:57 ` [PATCH 5/5] man: describe the metadata scrubbing ioctl Darrick J. Wong
2017-12-01 4:34 ` Eric Sandeen
2017-12-01 5:00 ` Eric Sandeen
2017-12-01 18:12 ` Darrick J. Wong
2017-12-01 19:03 ` [PATCH v2 " Darrick J. Wong
2017-12-04 21:19 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171130220118.GM21412@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
--cc=sandeen@sandeen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).