summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2017-06-26 16:56:09 -0700
committerBrian Behlendorf <[email protected]>2017-06-26 16:56:09 -0700
commitd12f91fde3c6a7d1aa71967b3480faac6c853051 (patch)
treeeb04ad4ac4f5cbf2d7e45a20f1047da24a41b16a /include
parent7517376f939d788a2622c84fe1f502799a74a0ae (diff)
OpenZFS 8264 - want support for promoting datasets in libzfs_core
Authored by: Andrew Stormont <[email protected]> Reviewed by: Andriy Gapon <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Reviewed by: Dan McDonald <[email protected]> Approved by: Dan McDonald <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: Giuseppe Di Natale <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/8264 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/a4b8c9a Closes #6254
Diffstat (limited to 'include')
-rw-r--r--include/libzfs_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libzfs_core.h b/include/libzfs_core.h
index f71d4b205..cf7ea3837 100644
--- a/include/libzfs_core.h
+++ b/include/libzfs_core.h
@@ -22,6 +22,7 @@
/*
* Copyright (c) 2012, 2014 by Delphix. All rights reserved.
* Copyright (c) 2017 Datto Inc.
+ * Copyright 2017 RackTop Systems.
*/
#ifndef _LIBZFS_CORE_H
@@ -50,6 +51,7 @@ enum lzc_dataset_type {
int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **);
int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *);
int lzc_clone(const char *, const char *, nvlist_t *);
+int lzc_promote(const char *, char *, int);
int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **);
int lzc_bookmark(nvlist_t *, nvlist_t **);
int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **);