code: public void reportErrorOnFile(File f) {
      // We use getAbsolutePath here instead of getCanonicalPath since we know
      // that there is some IO problem on that drive.
      // getCanonicalPath may need to call stat() or readlink() and it's likely
      // those calls would fail due to the same underlying IO problem.
      String absPath = f.getAbsolutePath();
      for (StorageDirectory sd : storageDirs) {
        String dirPath = sd.getRoot().getAbsolutePath();
        if (!dirPath.endsWith("/")) {
          dirPath += "/";
        }
        if (absPath.startsWith(dirPath)) {
          reportErrorsOnDirectory(sd, null);
          return;
        }
      }
      
    }
docs: Report that an IOE has occurred on some file which may
  or may not be within one of the NN image storage directories.