]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Snapshot cephfs APIs
authorVenky Shankar <vshankar@redhat.com>
Tue, 24 Nov 2020 09:03:23 +0000 (04:03 -0500)
committerVenky Shankar <vshankar@redhat.com>
Thu, 17 Dec 2020 18:07:51 +0000 (13:07 -0500)
commit7a1d3f64364c69d43f03af3e6ab23782dfb82c14
tree034648045bb0e5e8a2179490ae55d7f0ee6cf707
parent721f37d2c6b75a9ff16c849f879b602f98bdbcdd
client: Snapshot cephfs APIs

Introduce calls to create and delete a snapshot. The difference
b/w this and the traditional mkdir() call to create a snapshot
is the additional metadata field that can be persistent along
side a snapshot (on creation). However, rmsnap() does nothing
special and is included for completeness.

Additionally, get_snap_info() API allows to fetch snapshot info
which includes things like snaphot ID and metadata (if any, which
was set via mksnap() API).

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/client/Client.cc
src/client/Client.h
src/include/cephfs/libcephfs.h
src/libcephfs.cc