forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5745 zfs set allows only one dataset property to be set at a time
Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: George Wilson <george@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Reviewed by: Richard PALO <richard@NetBSD.org> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Approved by: Rich Lowe <richlowe@richlowe.net> References: illumos/illumos-gate@3092556 https://www.illumos.org/issues/5745 Porting notes: fix the missing braces around initializer error: zfs_cmd_t zc = {"\0"}; account for the error "error: too many arguments for format [-Werror=format-extra-args]" in zfs_do_set Declare at the top: zfs_prop_t prop; nvpair_t *elem; nvpair_t *next; int i; Additionally initialize: int added_resv = 0; zfs_prop_t prop = 0; zc->zc_nvlist_conf = '\0'; zc->zc_nvlist_src = '\0'; zc->zc_nvlist_dst = '\0'; Ported-by: kernelOfTruth kerneloftruth@gmail.com
- Loading branch information
1 parent
4ebed8d
commit e1db04b
Showing
5 changed files
with
193 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.