@@ -0,0 +1,676 @@
+package net.hyperic.sigar;%0A%0Apublic class NfsFileSystem extends FileSystem %7B%0A%0A    private static native boolean ping(String hostname);%0A%0A    String hostname = null;%0A%0A    public String getHostname() %7B%0A        if (this.hostname == null) %7B%0A            String dev = getDevName();%0A            int ix = dev.indexOf(%22:%22);%0A            if (ix != -1) %7B%0A                this.hostname = dev.substring(0, ix);%0A            %7D%0A        %7D%0A        return this.hostname;%0A    %7D%0A%0A    public boolean ping() %7B%0A        return ping(getHostname());%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        Sigar.load();%0A        System.out.println(NfsFileSystem.ping(args%5B0%5D));%0A    %7D%0A%7D%0A

extend FileSystem to ping nfs server