Class LinuxFileSystemJNA
java.lang.Object
oshi.software.common.AbstractFileSystem
oshi.software.common.os.linux.LinuxFileSystem
oshi.software.os.linux.LinuxFileSystemJNA
- All Implemented Interfaces:
FileSystem
JNA-based Linux file system implementation. Implements
statvfs via JNA.-
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
-
LinuxFileSystemJNA
public LinuxFileSystemJNA()
-
-
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
-