| To: | Brian Foster <bfoster@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 08/17] mkfs: getbool is redundant |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Tue, 30 Jun 2015 11:32:17 +1000 |
| Cc: | Jan ÅulÃk <jtulak@xxxxxxxxxx>, Dave Chinner <dchinner@xxxxxxxxxx>, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20150626171701.GD40750@xxxxxxxxxxxxxxx> |
| References: | <1434711726-13092-1-git-send-email-jtulak@xxxxxxxxxx> <1434711726-13092-9-git-send-email-jtulak@xxxxxxxxxx> <20150626171701.GD40750@xxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, Jun 26, 2015 at 01:17:01PM -0400, Brian Foster wrote:
> On Fri, Jun 19, 2015 at 01:01:57PM +0200, Jan ÅulÃk wrote:
> > From: Dave Chinner <dchinner@xxxxxxxxxx>
> >
> > getbool() can be replaced with getnum_checked with appropriate
> > min/max values set for the boolean variables.
> >
> > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> > Signed-off-by: Jan ÅulÃk <jtulak@xxxxxxxxxx>
....
> > },
> > { .index = R_NAME,
> > + .defaultval = SUBOPT_NEEDS_VAL,
> > },
> > { .index = R_NOALIGN,
> > + .defaultval = SUBOPT_NEEDS_VAL,
>
> Not sure about this one, either. There's no value according to the man
> page.
Keep in mind one of the reasons for doing this cleanup is to make
all the options consistent in their handling. i.e. all boolean
options will take a 0 or 1 value, regardless of whether they
currently require it or not.
i.e. this patchset changes the mkfs CLI interface to fix
inconsistencies that have crept in over the years....
Cheers,
Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| Previous by Date: | Re: [PATCH] xfs: remote attribute headers contain an invalid LSN, Dave Chinner |
|---|---|
| Next by Date: | [RFC 00/15] xfsprogs: support the reflink btree, Darrick J. Wong |
| Previous by Thread: | Re: [PATCH 08/17] mkfs: getbool is redundant, Brian Foster |
| Next by Thread: | [PATCH 09/17] mkfs: use getnum_checked for all ranged parameters, Jan ÅulÃk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |