|
It would be useful for "lfs find" to be able to check directories for the default file or directory layout, so that it is possible to scan a filesystem for directories that have explicit default layouts, like:
Unfortunately, "-D" is already used by "lfs find" as the short option for --maxdepth. Note also that the "--delete|-d" option is not listed in the "lfs setdirstripe" usage message and should be added. At least it is already in the lfs-setdirstripe.1 man page.
I like the idea of using the same --default long option name as "lfs setdirstripe" has, but to be able to distinguish searching for default file layouts from default directory layouts, do we need to have separate "--mdt-default" and "--ost-default" options? For the long options it is unambiguous what is intended, but the -c and -i short options overlap between "lfs setstripe" and "lfs setdirstripe". However, "lfs find" can already use -m instead of -i, and similarly -T can be used instead of -c, so I don't think there is a problem.
|