public static DiskStoreImpl offlineCompact(String name, File[] dirs, boolean upgradeVersionOnly,
      long maxOplogSize) throws Exception {
    try {
      DiskStoreImpl dsi =
          createForOffline(name, dirs, true, false, upgradeVersionOnly, maxOplogSize, true, false);
      dsi.offlineCompact();
      dsi.close();
      return dsi;
    } finally {
      cleanupOffline();
    }
  }
Validates the disk-store in offline mode, and returns the validated DiskStore instance.

@param name Disk store name.
@param dirs Directories of the disk-store to validate.
@return The validted {@link DiskStore}.
geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreImpl.java