]>
git.proxmox.com Git - ceph.git/blob - ceph/src/os/filestore/ZFSFileStoreBackend.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_ZFSFILESTOREBACKEND_H
5 #define CEPH_ZFSFILESTOREBACKEND_H
8 #include "GenericFileStoreBackend.h"
11 class ZFSFileStoreBackend
: public GenericFileStoreBackend
{
15 ZFS::Handle
*current_zh
;
16 bool m_filestore_zfs_snap
;
17 int update_current_zh();
19 explicit ZFSFileStoreBackend(FileStore
*fs
);
20 ~ZFSFileStoreBackend();
21 int detect_features();
22 bool can_checkpoint();
24 int list_checkpoints(list
<string
>& ls
);
25 int create_checkpoint(const string
& name
, uint64_t *cid
);
26 int rollback_to(const string
& name
);
27 int destroy_checkpoint(const string
& name
);