summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
95bcd51)
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Steve Gonczi <gonczi@comcast.net>
Approved by: Garrett D'Amore <garrett@damore.org>
References:
https://www.illumos.org/issues/2067
Ported by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
zfs_handle_t *zhp = NULL;
boolean_t parents = B_FALSE;
nvlist_t *props;
zfs_handle_t *zhp = NULL;
boolean_t parents = B_FALSE;
nvlist_t *props;
int c;
if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
int c;
if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
* named snapshot may not exist. Go straight to libzfs.
*/
if (cb.cb_recurse && (cp = strchr(argv[0], '@'))) {
* named snapshot may not exist. Go straight to libzfs.
*/
if (cb.cb_recurse && (cp = strchr(argv[0], '@'))) {
*cp = '\0';
if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL)
*cp = '\0';
if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL)
zprop_get_cbdata_t cb = { 0 };
int i, c, flags = ZFS_ITER_ARGS_CAN_BE_PATHS;
char *value, *fields;
zprop_get_cbdata_t cb = { 0 };
int i, c, flags = ZFS_ITER_ARGS_CAN_BE_PATHS;
char *value, *fields;
int limit = 0;
zprop_list_t fake_name = { 0 };
int limit = 0;
zprop_list_t fake_name = { 0 };
zfs_prop_t prop;
inherit_cbdata_t cb = { 0 };
char *propname;
zfs_prop_t prop;
inherit_cbdata_t cb = { 0 };
char *propname;
int flags = 0;
boolean_t received = B_FALSE;
int flags = 0;
boolean_t received = B_FALSE;
{
boolean_t all = B_FALSE;
boolean_t showversions = B_FALSE;
{
boolean_t all = B_FALSE;
boolean_t showversions = B_FALSE;
upgrade_cbdata_t cb = { 0 };
signed char c;
int flags = ZFS_ITER_ARGS_CAN_BE_PATHS;
upgrade_cbdata_t cb = { 0 };
signed char c;
int flags = ZFS_ITER_ARGS_CAN_BE_PATHS;
char sid[ZFS_MAXNAMELEN+32];
uid_t id;
uint64_t classes;
char sid[ZFS_MAXNAMELEN+32];
uid_t id;
uint64_t classes;
directory_error_t e;
(void) snprintf(sid, sizeof (sid), "%s-%u", domain, rid);
directory_error_t e;
(void) snprintf(sid, sizeof (sid), "%s-%u", domain, rid);
list_cbdata_t cb = { 0 };
char *value;
int limit = 0;
list_cbdata_t cb = { 0 };
char *value;
int limit = 0;
zfs_sort_column_t *sortcol = NULL;
int flags = ZFS_ITER_PROP_LISTSNAPS | ZFS_ITER_ARGS_CAN_BE_PATHS;
zfs_sort_column_t *sortcol = NULL;
int flags = ZFS_ITER_PROP_LISTSNAPS | ZFS_ITER_ARGS_CAN_BE_PATHS;
{
zfs_handle_t *zhp;
int c;
{
zfs_handle_t *zhp;
int c;
boolean_t recurse = B_FALSE;
boolean_t parents = B_FALSE;
boolean_t recurse = B_FALSE;
boolean_t parents = B_FALSE;
zfs_do_promote(int argc, char **argv)
{
zfs_handle_t *zhp;
zfs_do_promote(int argc, char **argv)
{
zfs_handle_t *zhp;
/* check options */
if (argc > 1 && argv[1][0] == '-') {
/* check options */
if (argc > 1 && argv[1][0] == '-') {
static int
zfs_do_rollback(int argc, char **argv)
{
static int
zfs_do_rollback(int argc, char **argv)
{
int c;
boolean_t force = B_FALSE;
rollback_cbdata_t cb = { 0 };
int c;
boolean_t force = B_FALSE;
rollback_cbdata_t cb = { 0 };
zfs_do_set(int argc, char **argv)
{
set_cbdata_t cb;
zfs_do_set(int argc, char **argv)
{
set_cbdata_t cb;
/* check for options */
if (argc > 1 && argv[1][0] == '-') {
/* check for options */
if (argc > 1 && argv[1][0] == '-') {
zfs_do_snapshot(int argc, char **argv)
{
boolean_t recursive = B_FALSE;
zfs_do_snapshot(int argc, char **argv)
{
boolean_t recursive = B_FALSE;
signed char c;
nvlist_t *props;
signed char c;
nvlist_t *props;
holds_cbdata_t cb = { 0 };
int limit = 0;
holds_cbdata_t cb = { 0 };
int limit = 0;
int flags = 0;
/* check options */
int flags = 0;
/* check options */
unshare_unmount_path(int op, char *path, int flags, boolean_t is_manual)
{
zfs_handle_t *zhp;
unshare_unmount_path(int op, char *path, int flags, boolean_t is_manual)
{
zfs_handle_t *zhp;
struct stat64 statbuf;
struct extmnttab entry;
const char *cmdname = (op == OP_SHARE) ? "unshare" : "unmount";
struct stat64 statbuf;
struct extmnttab entry;
const char *cmdname = (op == OP_SHARE) ? "unshare" : "unmount";
char *tosnap = NULL;
char *fromsnap = NULL;
char *atp, *copy;
char *tosnap = NULL;
char *fromsnap = NULL;
char *atp, *copy;
int c;
while ((c = getopt(argc, argv, "FHt")) != -1) {
int c;
while ((c = getopt(argc, argv, "FHt")) != -1) {
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
int i = 0;
char *cmdname;
int i = 0;
char *cmdname;