Class LinuxFileSystemJNA

All Implemented Interfaces:
FileSystem

@ThreadSafe public class LinuxFileSystemJNA extends LinuxFileSystem
JNA-based Linux file system implementation. Implements statvfs via JNA.
  • Constructor Details

    • LinuxFileSystemJNA

      public LinuxFileSystemJNA()
  • Method Details

    • queryStatvfs

      protected long[] queryStatvfs(String path)
      Description copied from class: LinuxFileSystem
      Queries filesystem statistics for the given mount path.

      Returns an array of [totalInodes, freeInodes, totalSpace, usableSpace, freeSpace], or null on failure (the caller will fall back to File methods for space values).

      Specified by:
      queryStatvfs in class LinuxFileSystem
      Parameters:
      path - the mount path to query
      Returns:
      array of [totalInodes, freeInodes, totalSpace, usableSpace, freeSpace], or null on failure