Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

sysfs - query information about the file system type

&pagelevel(4)&pagelevel

The sysfs program interface supplies information about the file system types configured in a system.

Depending on the function argument, sysfs supplies

  • the index which corresponds to the file system type with the name specified in the system

  • the name which corresponds to the file system type with the specified index

  • the maximum number of file system types configured in the system

This interface enables you to check whether a system is capable of processing bs2fs files. The argument for the file system type bs2fs is "bs2fs".

Example

if (sysfs(GETFSIND, "bs2fs") < 0) {
    /* bs2fs NOT SUPPORTED */
}