Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-7513

[Snapshot] Support list snapshots using fs -ls

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      We should support listing all snapshots under FileSystem list just like HDFS does (at least for FSO buckets, or LEGACY buckets when FSO is enabled):

      HDFS behavior
      $ hdfs dfsadmin -allowSnapshot /tmp/dir1
      Allowing snapshot on /tmp/dir1 succeeded
      
      $ hdfs dfs -createSnapshot /tmp/dir1
      Created snapshot /tmp/dir1/.snapshot/s20221118-053456.558
      
      $ hdfs dfs -createSnapshot /tmp/dir1 snap2
      Created snapshot /tmp/dir1/.snapshot/snap2
      
      $ hdfs dfs -ls /tmp/dir1/.snapshot/
      Found 2 items
      drwxr-xr-x   - om supergroup          0 2022-11-18 05:34 /tmp/dir1/.snapshot/s20221118-053456.558
      drwxr-xr-x   - om supergroup          0 2022-11-18 14:30 /tmp/dir1/.snapshot/snap2
      

      Attachments

        Issue Links

          Activity

            People

              xbis Christos Bisias
              smeng Siyao Meng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: