132133134135136137138139140141142
try { FileSystemUsage usage; if (fs instanceof NfsFileSystem) { NfsFileSystem nfs = (NfsFileSystem)fs; if (!nfs.ping()) { println(nfs.getUnreachableMessage()); return; } } usage = this.sigar.getFileSystemUsage(fs.getDirName());
111112113114115116117118119120121