The previous set (mkfs: save user input into opts table) added infrastructure, which we are going to use now. I split it into two patchsets, because this part is more ugly, so if there is an issue with this part, it doesn't stop the other patches from merging. The only thing this set is doing is that it replaces various ad-hoc variables with set/get functions. As a result, we now have just a single place for these values to be. Once all the values are in a single place, we can expand the automated validation and use it e.g. for loading up optional config file like Luis wants to do. I'm not removing all variables, because for now, we need e.g. flags which are not in the opts table. This is something that can happen later on, but for now, I'm just replacing variables that can be done 1:1. Description of all commits is updated. Jan Tulak (5): mkfs: replace variables with opts table: -b,d,s options mkfs: replace variables with opts table: -i options mkfs: replace variables with opts table: -l options mkfs: replace variables with opts table: -n options mkfs: replace variables with opts table: -r options mkfs/xfs_mkfs.c | 1219 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 718 insertions(+), 501 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html