vplat.c (52782930452a219339a03491668e436bcef2efd9) | vplat.c (e9dbad6f263d5570ed7ff5443ec5b958af8c24d7) |
---|---|
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 --- 2591 unchanged lines hidden (view full) --- 2600 return (-1); 2601 } 2602 2603 /* 2604 * Automatically set the 'zoned' property. We check the value 2605 * first because we'll get EPERM if it is already set. 2606 */ 2607 if (!zfs_prop_get_int(zhp, ZFS_PROP_ZONED) && | 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 --- 2591 unchanged lines hidden (view full) --- 2600 return (-1); 2601 } 2602 2603 /* 2604 * Automatically set the 'zoned' property. We check the value 2605 * first because we'll get EPERM if it is already set. 2606 */ 2607 if (!zfs_prop_get_int(zhp, ZFS_PROP_ZONED) && |
2608 zfs_prop_set(zhp, ZFS_PROP_ZONED, "on") != 0) { | 2608 zfs_prop_set(zhp, zfs_prop_to_name(ZFS_PROP_ZONED), 2609 "on") != 0) { |
2609 zerror(zlogp, B_FALSE, "cannot set 'zoned' " 2610 "property for ZFS dataset '%s'\n", 2611 dstab.zone_dataset_name); 2612 zonecfg_fini_handle(handle); 2613 zfs_close(zhp); 2614 libzfs_fini(hdl); 2615 return (-1); 2616 } --- 1233 unchanged lines hidden --- | 2610 zerror(zlogp, B_FALSE, "cannot set 'zoned' " 2611 "property for ZFS dataset '%s'\n", 2612 dstab.zone_dataset_name); 2613 zonecfg_fini_handle(handle); 2614 zfs_close(zhp); 2615 libzfs_fini(hdl); 2616 return (-1); 2617 } --- 1233 unchanged lines hidden --- |