On Fri, Mar 02, 2018 at 12:32:28PM -0800, Luis R. Rodriguez wrote: > You may want to stick to specific set of configuration options when > creating filesystems with mkfs.xfs -- sometimes due to pure technical > reasons, but some other times to ensure systems remain compatible as > new features are introduced with older kernels, or if you always want > to take advantage of some new feature which would otherwise typically > be disruptive. > > Although mkfs.xfs already uses sensible defaults this adds a configuration > option for parsing defaults settings for mkfs.xfs parsed prior to processing > input arguments from the command line. > > We define an XFS configuration directory, /etc/mkfs.xfs.d/ and allow for > different types of configuration files, if none is specified we look for > the default type, /etc/mkfs.xfs.d/default, and you can override with -t. > For instance if you specify: > > mkfs.xfs -t experimental -f /dev/loop0 I haven't looked at the code at all, but I'll just make this initial comment now: please don't use "-t" with mkfs.xfs. "-t <type>" is a reserved flag used by the mkfs multiplexor to specify the filesystem type, and so cannot be passed to filesystem specific mkfs binaries. Hence we should not be using it in the mkfs.xfs binary. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- 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