FileSystem fs = mounts.getMountPoint(name);
public void outputFileSystem(String arg) throws SigarException { FileSystemMap mounts = this.proxy.getFileSystemMap(); String name = FileCompleter.expand(arg); FileSystem fs = mounts.getMountPoint(name); if (fs != null) { printHeader(); output(fs); return; } throw new SigarException(arg + " No such file or directory"); }
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(path); sigarFileSystems.put(location, fileSystem);
public FileSystemInfo getFileSystem(String path) { String mountPoint = null; try { FileSystem mountPointForPath = sigar.getFileSystemMap().getMountPoint(path); if (mountPointForPath != null) mountPoint = mountPointForPath.getDirName(); } catch (Throwable e) { log.warn("Cannot obtain native file system information for [" + path + "]", e); // ignore native error otherwise } FileSystemInfo fileSystem = new FileSystemInfo(mountPoint); return fileSystem; }
public FileSystemInfo getFileSystem(String path) { String mountPoint = null; try { FileSystem mountPointForPath = sigar.getFileSystemMap().getMountPoint(path); if (mountPointForPath != null) mountPoint = mountPointForPath.getDirName(); } catch (Throwable e) { log.warn("Cannot obtain native file system information for [" + path + "]", e); // ignore native error otherwise } FileSystemInfo fileSystem = new FileSystemInfo(mountPoint); return fileSystem; }
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(location.getPath()); sigarFileSystems.put(location, fileSystem);
FileSystemMap fileSystemMap = sigar.getFileSystemMap(); if (fileSystemMap != null) { fileSystem = fileSystemMap.getMountPoint(location.getPath()); sigarFileSystems.put(location, fileSystem);