Commit 849f530
committed
doc: improve fs.StatFs property documentation
Fixes #50749
- statfs.bsize: clarify the unit is bytes (not bits)
- statfs.bavail: add example showing how to calculate available
size in bytes (bsize * bavail)
- statfs.bfree: add example showing how to calculate free size
in bytes (bsize * bfree)
- statfs.type: explain that it is a numeric filesystem identifier
and provide common examples (ext4, FAT)1 parent 1ddb754 commit 849f530
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8002 | 8002 | | |
8003 | 8003 | | |
8004 | 8004 | | |
8005 | | - | |
| 8005 | + | |
| 8006 | + | |
8006 | 8007 | | |
8007 | 8008 | | |
8008 | 8009 | | |
| |||
8014 | 8015 | | |
8015 | 8016 | | |
8016 | 8017 | | |
8017 | | - | |
| 8018 | + | |
| 8019 | + | |
8018 | 8020 | | |
8019 | 8021 | | |
8020 | 8022 | | |
| |||
8038 | 8040 | | |
8039 | 8041 | | |
8040 | 8042 | | |
8041 | | - | |
| 8043 | + | |
| 8044 | + | |
8042 | 8045 | | |
8043 | 8046 | | |
8044 | 8047 | | |
| |||
8086 | 8089 | | |
8087 | 8090 | | |
8088 | 8091 | | |
8089 | | - | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
8090 | 8096 | | |
8091 | 8097 | | |
8092 | 8098 | | |
| |||
0 commit comments