X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fos%2Ffs%2FZFS.h;fp=src%2Fceph%2Fsrc%2Fos%2Ffs%2FZFS.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=3ebe11107b20c22b9c0480097f3d8a1b11bf8636;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/os/fs/ZFS.h b/src/ceph/src/os/fs/ZFS.h deleted file mode 100644 index 3ebe111..0000000 --- a/src/ceph/src/os/fs/ZFS.h +++ /dev/null @@ -1,39 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_ZFS_H -#define CEPH_ZFS_H - -// Simple wrapper to hide libzfs.h. (it conflicts with standard linux headers) -class ZFS { - void *g_zfs; -public: - - static const int TYPE_FILESYSTEM; - static const int TYPE_SNAPSHOT; - static const int TYPE_VOLUME; - static const int TYPE_POOL; - static const int TYPE_DATASET; - - typedef void Handle; - typedef int (*iter_func)(Handle *, void *); - - static const char *get_name(Handle *); - - ZFS() : g_zfs(NULL) {} - ~ZFS(); - int init(); - Handle *open(const char *, int); - void close(Handle *); - Handle *path_to_zhandle(const char *, int); - int create(const char *, int); - int snapshot(const char *, bool); - int rollback(Handle *, Handle *, bool); - int destroy_snaps(Handle *, const char *, bool); - int iter_snapshots_sorted(Handle *, iter_func, void *); - int mount(Handle *, const char *, int); - int umount(Handle *, const char *, int); - bool is_mounted(Handle *, char **); -}; - -#endif