Deleted Added
full compact
libzfs_core.c (321535) libzfs_core.c (321544)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 745 unchanged lines hidden (view full) ---

754
755 args = fnvlist_alloc();
756 err = lzc_ioctl(ZFS_IOC_ROLLBACK, fsname, args, &result);
757 nvlist_free(args);
758 if (err == 0 && snapnamebuf != NULL) {
759 const char *snapname = fnvlist_lookup_string(result, "target");
760 (void) strlcpy(snapnamebuf, snapname, snapnamelen);
761 }
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 745 unchanged lines hidden (view full) ---

754
755 args = fnvlist_alloc();
756 err = lzc_ioctl(ZFS_IOC_ROLLBACK, fsname, args, &result);
757 nvlist_free(args);
758 if (err == 0 && snapnamebuf != NULL) {
759 const char *snapname = fnvlist_lookup_string(result, "target");
760 (void) strlcpy(snapnamebuf, snapname, snapnamelen);
761 }
762 nvlist_free(result);
763
762 return (err);
763}
764
765/*
766 * Creates bookmarks.
767 *
768 * The bookmarks nvlist maps from name of the bookmark (e.g. "pool/fs#bmark") to
769 * the name of the snapshot (e.g. "pool/fs@snap"). All the bookmarks and

--- 88 unchanged lines hidden ---
764 return (err);
765}
766
767/*
768 * Creates bookmarks.
769 *
770 * The bookmarks nvlist maps from name of the bookmark (e.g. "pool/fs#bmark") to
771 * the name of the snapshot (e.g. "pool/fs@snap"). All the bookmarks and

--- 88 unchanged lines hidden ---