You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/02/16 09:50:58 UTC

[GitHub] [ozone] sadanand48 commented on a change in pull request #1915: HDDS-4742. Make trash work with FS Optimised Buckets.

sadanand48 commented on a change in pull request #1915:
URL: https://github.com/apache/ozone/pull/1915#discussion_r576688408



##########
File path: hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OzoneFSUtils.java
##########
@@ -205,4 +206,25 @@ public static int getFileCount(String keyName) {
     java.nio.file.Path keyPath = Paths.get(keyName);
     return keyPath.getNameCount();
   }
+
+  /**
+   * Returns true if the bucket is FS Optimised.
+   * @param bucket
+   * @return
+   */
+  public static boolean isFSOptimizedBucket(OmBucketInfo bucket) {
+    // layout version V1 represents optimized FS path

Review comment:
       Done.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org