xfs
[Top] [All Lists]

Re: [PATCH 03/17] mkfs: Sanitise the superblock feature macros

To: Brian Foster <bfoster@xxxxxxxxxx>
Subject: Re: [PATCH 03/17] mkfs: Sanitise the superblock feature macros
From: Jan Tulak <jtulak@xxxxxxxxxx>
Date: Fri, 3 Jul 2015 05:53:27 -0400 (EDT)
Cc: Dave Chinner <dchinner@xxxxxxxxxx>, xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150625193807.GG36162@xxxxxxxxxxxxxxx>
References: <1434711726-13092-1-git-send-email-jtulak@xxxxxxxxxx> <1434711726-13092-4-git-send-email-jtulak@xxxxxxxxxx> <20150625193807.GG36162@xxxxxxxxxxxxxxx>
Thread-index: lOuZX7yXUSaQCS7dUsPefXYf6Xq2nQ==
Thread-topic: mkfs: Sanitise the superblock feature macros

----- Original Message -----
> From: "Brian Foster" <bfoster@xxxxxxxxxx>
> > @@ -1912,17 +2013,17 @@ _("32 bit Project IDs always enabled on CRC enabled
> > filesytems\n"));
> >              * tried to use crc=0,finobt=1, then issue a warning before
> >              * turning them off.
> >              */
> > -           if (finobt && finobtflag) {
> > +           if (sb_feat.finobt && sb_feat.finobtflag) {
> 
> Since the code above drops finobtflag, I don't think we'll ever hit
> this. Indeed, I can now create a crc=0,finobt=1 fs, which shouldn't
> happen.
> 
> Brian
> 

Finobtflag is dropped by a later patch in the set entirely. After all patches, 
the line is:

        if (sb_feat.finobt && mopts.subopt_params[M_FINOBT].seen)

Which indeed works as it should:

mkfs.xfs -f -m crc=0,finobt=1 /dev/vdb2
warning: finobt not supported without CRC support, disabled.

Cheers,
Jan

-- 
Jan Tulak
jtulak@xxxxxxxxxx

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