Skip to content

Commit

Permalink
fix: check block device
Browse files Browse the repository at this point in the history
Signed-off-by: Ning Yu <ningyu@automq.com>
  • Loading branch information
Chillax-0v0 committed Dec 7, 2023
1 parent 9fdc2a7 commit ce05ea8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static String checkAvailable(String path) {
return "java.nio.DirectByteBuffer.<init>(long, int) not available." +
" Add --add-opens=java.base/java.nio=ALL-UNNAMED and -Dio.netty.tryReflectionSetAccessible=true to JVM options may fix this.";
}
if (!tryOpenFileWithDirectIO(String.format(CHECK_DIRECT_IO_AVAILABLE_FORMAT, path))) {
if (!path.startsWith(DEVICE_PREFIX) && !tryOpenFileWithDirectIO(String.format(CHECK_DIRECT_IO_AVAILABLE_FORMAT, path))) {
return "O_DIRECT not supported by the file system, path: " + path;
}
return null;
Expand Down

0 comments on commit ce05ea8

Please sign in to comment.