| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 11/15] mkfs: table based parsing for converted parameters |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Mon, 2 Dec 2013 09:17:34 -0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1385689430-10103-12-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1385689430-10103-1-git-send-email-david@xxxxxxxxxxxxx> <1385689430-10103-12-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, Nov 29, 2013 at 12:43:46PM +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > All the parameters that can be passed as block or sector sizes need > to be passed the block and sector sizes that they should be using > for conversion. For parameter parsing, it is always the same two > variables, so to make things easy just declare them as global > variables so we can avoid needing to pass them to getnum_checked(). > > We also need to mark these parameters are requiring conversion so > that we don't need to pass this information manually to > getnum_checked(). Further, some of these options are required to > have a power of 2 value, so add optional checking for that as well. > > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 10/15] mkfs: add respecification detection to generic parsing, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 12/15] mkfs: merge getnum, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 10/15] mkfs: add respecification detection to generic parsing, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 12/15] mkfs: merge getnum, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |