public static DiskStore offlineValidate(String name, File[] dirs) {
    try {
      DiskStoreImpl diskStore = createForOfflineValidate(name, dirs);
      diskStore.validate();

      return diskStore;
    } 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