[lustre-devel] Possible change to "lfs find -size" default units?

Andreas Dilger via lustre-devel <[email protected]> Sun, 5 Nov 2023 06:13:52 +0000
Newsgroups org.lustre.lists.lustre-devel
Message-ID <[email protected]>
I've recently realized that "lfs find -size N" defaults to looking for files of N *bytes* by default, unlike regular find(1) that is assuming 512-byte blocks by default if no units are given.

I'm wondering if it would be disruptive to users if the default unit for -size was changed to 512-byte blocks instead of bytes, or if it is most common to specify a unit suffix like "lfs find -size +1M" and the change would mostly be unnoticed?  I would add a 'c' suffix for compatibility with find(1) to allow specifying an exact number of chars (bytes).

On the other hand, possibly this would be *less* confusing for users that are already used to the behavior of regular "find"?

Cheers, Andreas
--
Andreas Dilger
Lustre Principal Architect
Whamcloud







_______________________________________________
lustre-devel mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org