code: public static void fsyncIfPossible(String path) throws IOException {
      if (nativeLoaded) {
        fsync(path);
      } else {
        LOG.warn("Cannot fsync : " + path +
            " since native libraries are not available");
      }
    }
docs: Calls fsync on the given file/dir path.