Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: difference between bfs and find with primaries -ls #77

Closed
grylem opened this issue Jun 25, 2021 · 1 comment
Closed

macOS: difference between bfs and find with primaries -ls #77

grylem opened this issue Jun 25, 2021 · 1 comment

Comments

@grylem
Copy link

grylem commented Jun 25, 2021

Hi
echo file >file
find . -ls and ls -s
Display the same values for the number of file system blocks actually used by file - 8, but bfs -ls show - 4.
Regards.

@tavianator
Copy link
Owner

Indeed, the traditional block size is 512 bytes, but bfs follows GNU find here and uses 1KiB blocks. GNU find's -ls will use 512B blocks if POSIXLY_CORRECT is set, even though -ls is not POSIX. bfs doesn't listen to POSIXLY_CORRECT about this, but it probably should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants