Skip to content

fs: add statvfs function#375

Open
systemcrash wants to merge 1 commit intojow-:masterfrom
systemcrash:statvfs
Open

fs: add statvfs function#375
systemcrash wants to merge 1 commit intojow-:masterfrom
systemcrash:statvfs

Conversation

@systemcrash
Copy link
Contributor

Expose useful functionality to query filesystem properties, such as free size, total size, and various other block properties made available via
https://www.man7.org/linux/man-pages/man3/statvfs.3.html

If the host runs Linux, we also expose the type property, which provides the FS type magic number.

Complete jsdoc is provided for the new object and function.

Run-tested on macOS and OpenWRT 25.12-rc5

Expose useful functionality to query filesystem
properties, such as free size, total size, and various
other block properties made available via
https://www.man7.org/linux/man-pages/man3/statvfs.3.html

If the host runs Linux, we also expose the type property,
which provides the FS type magic number.

Complete jsdoc is provided for the new object and function.

Run-tested on macOS and OpenWRT 25.12-rc5

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant