]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: Add snapshot info command 35670/head
authorKotresh HR <khiremat@redhat.com>
Wed, 22 Apr 2020 10:40:27 +0000 (16:10 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 19 Jun 2020 10:32:28 +0000 (16:02 +0530)
commit3a8925ec088f0f6756f29644b798fc7c9b6e448e
tree08cd224cb0961cc51beb117913f3ba9a8d3cd280
parentcae4ccd411bb53fe89d040f020b6743f87826a47
mgr/volumes: Add snapshot info command

The following command is added

"ceph fs subvolume snapshot info <vol_name> <sub_name> <snap_name> [<group_name>]"

The output is in json format with following fields

    created_at: time of creation of snapshot in the format "YYYY-MM-DD HH:MM:SS:ffffff"
    data_pool: data pool the snapshot belongs to
    has_pending_clones: "yes" if snapshot clone is in progress otherwise "no"
    protected: "yes" if snapshot is protected otherwise "no"
    size: snapshot size in bytes

Fixes: https://tracker.ceph.com/issues/45237
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 171930ef773ee6630c76eb9581c725594fb4e884)
doc/cephfs/fs-volumes.rst
qa/tasks/cephfs/test_volumes.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py