]>
git.proxmox.com Git - ceph.git/blob - ceph/src/os/fs/ZFS.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
7 // Simple wrapper to hide libzfs.h. (it conflicts with standard linux headers)
12 static const int TYPE_FILESYSTEM
;
13 static const int TYPE_SNAPSHOT
;
14 static const int TYPE_VOLUME
;
15 static const int TYPE_POOL
;
16 static const int TYPE_DATASET
;
19 typedef int (*iter_func
)(Handle
*, void *);
21 static const char *get_name(Handle
*);
23 ZFS() : g_zfs(NULL
) {}
26 Handle
*open(const char *, int);
28 Handle
*path_to_zhandle(const char *, int);
29 int create(const char *, int);
30 int snapshot(const char *, bool);
31 int rollback(Handle
*, Handle
*, bool);
32 int destroy_snaps(Handle
*, const char *, bool);
33 int iter_snapshots_sorted(Handle
*, iter_func
, void *);
34 int mount(Handle
*, const char *, int);
35 int umount(Handle
*, const char *, int);
36 bool is_mounted(Handle
*, char **);