[ https://issues.apache.org/jira/browse/HDFS-13489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16472166#comment-16472166 ]
Daryn Sharp commented on HDFS-13489: ------------------------------------ On further inspection, this method appears to possibly be at odds with the semantics of {{getSnapshottableDirListing}}. That method returns only the snapshottable directories owned by the user. I don't know if there's perceived security value in not letting a non-owner detect snapshot roots but someone with snapshot expertise should comment. Otherwise why not have the client call {{getSnapshottableDirListing}} and prefix match against the given path? > Get base snapshotable path if exists for a given path > ----------------------------------------------------- > > Key: HDFS-13489 > URL: https://issues.apache.org/jira/browse/HDFS-13489 > Project: Hadoop HDFS > Issue Type: Task > Components: hdfs > Reporter: Harkrishn Patro > Assignee: Harkrishn Patro > Priority: Major > Attachments: HDFS-13489.001.patch, HDFS-13489.002.patch, > HDFS-13489.003.patch, HDFS-13489.004.patch, HDFS-13489.005.patch, > HDFS-13489.006.patch, HDFS-13489.007.patch > > > Currently, hdfs only lists the snapshotable paths in the filesystem. This > feature would add the functionality of figuring out if a given path is > snapshotable or not. If yes, it would return the base snapshotable path. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org