code: private void checkAllowedNonFileState(StorageState curState, Object name)
        throws IOException {
      switch (curState) {
      case NON_EXISTENT:
      case NOT_FORMATTED:
      case NORMAL:
        break;
      default:
        throwIOException("ImageManager bad state: " + curState + " for: "
            + name.toString());
      }
    }
docs: Check if remote image/journal storage is in allowed state.