The current behavior I’m guessing has existed since the lfs find command was
introduced so there’s probably a lot of user code and external software built
around the current behavior. That could all break in ugly ways if the default
unit is changed to a value that’s 512 times larger than :)
>>> On Sun, 5 Nov 2023 06:13:52 +, Andreas Dilger via
>>> lustre-discuss said:
> 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
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