code: private boolean compareFs(FileSystem srcFs, FileSystem destFs) {
      URI srcUri = srcFs.getUri();
      URI dstUri = destFs.getUri();
      if (srcUri.getScheme() == null) {
        return false;
      }
      if (!srcUri.getScheme().equals(dstUri.getScheme())) {
        return false;
      }
      String srcHost = srcUri.getHost();
      String dstHost = dstUri.getHost();
      if ((srcHost != null) && (dstHost != null)) {
        try {
          srcHost = InetAddress.getByName(srcHost).getCanonicalHostName();
          dstHost = InetAddress.getByName(dstHost).getCanonicalHostName();
        } catch(UnknownHostException ue) {
          return false;
        }
        if (!srcHost.equals(dstHost)) {
          return false;
        }
      }
      else if (srcHost == null && dstHost != null) {
        return false;
      }
      else if (srcHost != null && dstHost == null) {
        return false;
      }
      //check for ports
      if (srcUri.getPort() != dstUri.getPort()) {
        return false;
      }
      return true;
    }
docs: /* see if two file systems are the same or not