adoroszlai commented on pull request #1104: URL: https://github.com/apache/hadoop-ozone/pull/1104#issuecomment-654620400
> > > Question: Now when list at the root "/" with ofs filesystem, for link buckets they will be displayed as a new entry of only resolved buckets will be shown. What should be the behavior here. > > > > > > I'm afraid I don't understand the question. Can you please give an example? > > when user perform `ls` on volume/bucket, which has below buckets. It will show only resolved buckets or all the buckets? Or it follows normal ls semantics? > > if it has mounted buckets > > b1 -> b2 > b2 > b4 -> b5 > > what should be the behavior of ls in this case? Thanks for the clarification. `ls` on volume shows buckets and links in that volume, will not resolve links. `ls` on bucket shows the keys in that bucket. `ls` on link shows keys in the bucket that the link points to. Example created by the robot test: ``` $ ozone fs -ls ofs://om/63433-target/ Found 7 items drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:50 ofs://om/63433-target/bucket3 drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:49 ofs://om/63433-target/dangling-link drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:50 ofs://om/63433-target/link2 drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:51 ofs://om/63433-target/link3 drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:51 ofs://om/63433-target/loop1 drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:51 ofs://om/63433-target/loop2 drwxrwxrwx - hadoop hadoop 0 2020-07-07 05:51 ofs://om/63433-target/loop3 ``` ``` $ ozone fs -ls ofs://om/63433-source/bucket1 Found 2 items -rw-rw-rw- 3 hadoop hadoop 671 2020-07-07 05:49 ofs://om/63433-source/bucket1/key1 -rw-rw-rw- 3 hadoop hadoop 372 2020-07-07 05:51 ofs://om/63433-source/bucket1/key3 ``` ``` $ ozone fs -ls ofs://om/63433-target/link3 Found 2 items -rw-rw-rw- 3 hadoop hadoop 671 2020-07-07 05:49 ofs://om/63433-target/link3/key1 -rw-rw-rw- 3 hadoop hadoop 372 2020-07-07 05:51 ofs://om/63433-target/link3/key3 ``` ``` $ ozone sh bucket info /63433-target/link3 { "volumeName" : "63433-target", "name" : "link3", ... "sourceVolume" : "63433-source", "sourceBucket" : "bucket1" } ``` ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org