private AsynchronousFileChannel createFileChannel() {
      try {
        if (!checkMountPathAccessible()) {
          return null;
        }
        Path path = Paths.get(disk.getMountPath(), "temp");
        AsynchronousFileChannel fileChannel =
            AsynchronousFileChannel.open(path, StandardOpenOption.WRITE, StandardOpenOption.READ,
                StandardOpenOption.SYNC, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE);
        return fileChannel;
      } catch (StoreException e) {
        if (e.getErrorCode() == StoreErrorCodes.InitializationError) {
          diskHealthStatus = DiskHealthStatus.MOUNT_NOT_ACCESSIBLE;
          logger.error("Exception occurred when checking if the mount is accessible {}", disk.getMountPath(), e);
        }
      } catch (Exception e) {
        diskHealthStatus = DiskHealthStatus.CREATE_EXCEPTION;
        logger.error("Exception occurred when creating a file/directory for disk healthcheck {}", disk.getMountPath(),
            e);
      }
      return null;
    }
creates the directory to store the file if it doesn't already exist and
creates filechannel used to perform the disk healthcheck read/write operations
@return filechannel if everything functioned without errors or null if there was an exception
ambry-store/src/main/java/com/github/ambry/store/DiskManager.java