xinglin commented on a change in pull request #4034:
URL: https://github.com/apache/hadoop/pull/4034#discussion_r823155360
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
##########
@@ -1128,51 +1128,58 @@ public BlockStoragePolicySpi getStoragePolicy(Path src)
throws IOException {
return allPolicies;
}
+ // Test whether a path is inside a snapshot or encrypted.
+ boolean isSnapshotEnabledOrEncrypted(Path p) throws IOException {
+ try {
+ FileStatus status = getFileStatus(p);
+ return status.isSnapshotEnabled() || status.isEncrypted();
Review comment:
reverted to use path length comparison approach.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]