Pengzna commented on code in PR #15181:
URL: https://github.com/apache/iotdb/pull/15181#discussion_r2013533799


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/PathUtils.java:
##########
@@ -224,4 +226,23 @@ public static String unQualifyDatabaseName(String 
databaseName) {
   public static boolean isTableModelDatabase(final String databaseName) {
     return !databaseName.startsWith("root.");
   }
+
+  /**
+   * Get the mount point of one specific file given its path. NOTE: only can 
be used in Linux and
+   * MacOS System.
+   */
+  public static String getMountPoint(String path) throws IOException, 
InterruptedException {

Review Comment:
   good idea! fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to