| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 07/19] mkfs: structify input parameter passing |
| From: | Jan Tulak <jtulak@xxxxxxxxxx> |
| Date: | Thu, 7 Apr 2016 13:43:12 +0200 |
| Cc: | xfs-oss <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <5705D0AD.9060106@xxxxxxxxxxx> |
| References: | <1458818136-56043-1-git-send-email-jtulak@xxxxxxxxxx> <1458818136-56043-8-git-send-email-jtulak@xxxxxxxxxx> <5705D0AD.9060106@xxxxxxxxxxx> |
âYes. I couldn't find any usecase, where an option would accept only single hardcoded value (0, in this case) as an argument, and nothing else, because then it doesn't need the argument at all... â And because forgetting the min/maxval is easy (I know it first hand :-) ), I added the check for minval==0 && maxval == 0 to raise an error if you callÂgetnum_checked() for this option. âCheers,â âJanâ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 04/19] mkfs: validate all input values, Jan Tulak |
|---|---|
| Next by Date: | Re: [PATCH 03/19] mkfs: Sanitise the superblock feature macros, Jan Tulak |
| Previous by Thread: | Re: [PATCH 07/19] mkfs: structify input parameter passing, Eric Sandeen |
| Next by Thread: | [PATCH v2] xfs_quota: print quota id number if the name can't be found, Zorro Lang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |