Skip to content

Commit

Permalink
Correct stat docstring on blocks' blocksize (#51460)
Browse files Browse the repository at this point in the history
The block size when reporting `blocks` is _always_ 512, regardless of
the filesystem, on all systems we currently know about and support, and
in particular is typically not the same as blksize (which is commonly
reported as 4096).

Fixes #51447
  • Loading branch information
tecosaur authored Sep 27, 2023
1 parent cde964f commit 7428d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/stat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ The fields of the structure are:
| gid | The group id of the file owner |
| rdev | If this file refers to a device, the ID of the device it refers to |
| blksize | The file-system preferred block size for the file |
| blocks | The number of such blocks allocated |
| blocks | The number of 512-byte blocks allocated |
| mtime | Unix timestamp of when the file was last modified |
| ctime | Unix timestamp of when the file's metadata was changed |
Expand Down

0 comments on commit 7428d8a

Please sign in to comment.