Class LinuxFileSystemNF
java.lang.Object
oshi.software.common.AbstractFileSystem
oshi.software.common.os.linux.LinuxFileSystem
oshi.software.common.os.linux.nativefree.LinuxFileSystemNF
- All Implemented Interfaces:
FileSystem
Native-free Linux file system implementation. Extends
LinuxFileSystem, returning null from
queryStatvfs(String) to trigger the Java File fallback for space/inode values.-
Field Summary
Fields inherited from class LinuxFileSystem
OSHI_LINUX_FS_PATH_EXCLUDES, OSHI_LINUX_FS_PATH_INCLUDES, OSHI_LINUX_FS_VOLUME_EXCLUDES, OSHI_LINUX_FS_VOLUME_INCLUDESFields inherited from class AbstractFileSystem
NETWORK_FS_TYPES, PSEUDO_FS_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected long[]queryStatvfs(String path) Queries filesystem statistics for the given mount path.Methods inherited from class LinuxFileSystem
buildUuidMap, getFileStores, getMaxFileDescriptors, getMaxFileDescriptorsPerProcess, getOpenFileDescriptorsMethods inherited from class AbstractFileSystem
getFileStores
-
Constructor Details
-
LinuxFileSystemNF
public LinuxFileSystemNF()
-
-
Method Details
-
queryStatvfs
Description copied from class:LinuxFileSystemQueries filesystem statistics for the given mount path.Returns an array of [totalInodes, freeInodes, totalSpace, usableSpace, freeSpace], or
nullon failure (the caller will fall back toFilemethods for space values).- Specified by:
queryStatvfsin classLinuxFileSystem- Parameters:
path- the mount path to query- Returns:
- array of [totalInodes, freeInodes, totalSpace, usableSpace, freeSpace], or
nullon failure
-