code: private static void fsyncLineage(final Path path) throws IOException {
          Path cursor = path.toRealPath();
          while (cursor != null) {
              fsync(cursor);
              cursor = cursor.getParent();
          }
      }
docs: Fsync a path and all parents all the way up to the fs root.
  
  @param path The path that we want to fsync.