public static void main(String[] args) throws Exception {
    if (args.length == 0) {
      System.out.println("Usage: diskStoreName [dirs]");
    } else {
      String dsName = args[0];
      File[] dirs = null;
      if (args.length > 1) {
        dirs = new File[args.length - 1];
        for (int i = 1; i < args.length; i++) {
          dirs[i - 1] = new File(args[i]);
        }
      }
      offlineCompact(dsName, dirs, false, 1024);
    }
  }
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