xBis7 opened a new pull request, #4134:
URL: https://github.com/apache/ozone/pull/4134

   ## What changes were proposed in this pull request?
   
   This PR adds support for listing all snapshots under a  bucket by using the 
`fs -ls` command with providing the `.snapshot` indicator after the bucket name.
   
   ```
   bash-4.2$ ozone sh volume create /vol1 
   bash-4.2$ ozone sh bucket create /vol1/bucket1
   bash-4.2$ ozone sh key put /vol1/bucket1/key /etc/hosts
   bash-4.2$ ozone sh snapshot create /vol1/bucket1 snap1
   bash-4.2$ ozone fs -ls /vol1/bucket1/.snapshot
   Found 1 items
   drwxrwxrwx   - hadoop hadoop          0 2022-12-28 14:07 
/vol1/bucket1/.snapshot/snap1
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-7513
   
   ## How was this patch tested?
   
   For testing this patch, a new test was added under 
`integration-test/TestOzoneFsSnapshot.java` and a new robot acceptance test was 
created.
   


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

Reply via email to