code: public static void enforceRegularStorageINode(INodeFile inode, String msg)
      throws IOException {
      if (inode.getStorageType() != StorageType.REGULAR_STORAGE) {
        LOG.error(msg);
        throw new IOException(msg);
      }
    }
docs: Verify if file is regular storage, otherwise throw an exception