Expand description
The disk space a directory takes (SRD-118 §6.2): a walk of
everything under it, counted as du counts.
- bytes is the space allocated on disk: each file’s block count times 512. It is what filling the disk is measured in, and it is less than the apparent size for a sparse file and more for a small one.
- apparent_bytes is the sum of the files’ lengths.
- A file with several hard links under the directory is counted once.
- A symbolic link is counted as the link, and is never followed.
- The directory itself and every directory under it are counted.
A database rewrites its files while it runs, so an entry that is gone by the time it is examined is skipped without comment: it was deleted during the walk and takes no space now.
Structs§
- Unreadable
- An entry the walk could not examine.
- Usage
- What a directory holds.
Functions§
- filesystem
- The size of the filesystem
pathis on and the space on it a process without privilege may still take:(total, available)in bytes.Nonewhen statvfs fails or the platform has none. - measure
- Measure
root.