Lines Matching refs:share2flag

369 	int share2flag;
381 share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
382 is_oldshares = (share2flag <= ZPROP_SHARE2_CONVERTED);
2011 * if share2flag is non-zero, it is the format to store the share in.
2012 * if share2flag is zero, use the share2 format the FS is currently set at.
2016 const char *mntpnt, nvlist_t *share, boolean_t persist, int share2flag)
2036 share2flag < ZPROP_SHARE2_NA);
2047 if (share2flag == ZPROP_SHARE2_CONVERTED ||
2096 if (share2flag > ZPROP_SHARE2_CONVERTED) {
2099 } else if (share2flag > 0) {
2103 ASSERT(share2flag == 0);
2153 int share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
2155 if (zfs_check_inconsistent_share2(zhp, 0, &share2flag) != 0)
2159 persist, share2flag);
2545 int share2flag;
2563 share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
2564 if (zfs_check_inconsistent_share2(zhp, spa_version, &share2flag) != 0)
2568 share2flag <= ZPROP_SHARE2_CONVERTED) {
2569 if (share2flag == 0) {
2580 ASSERT(share2flag == ZPROP_SHARE2_CONVERTED);
2707 int share2flag; /* sharing style */
2729 int share2flag;
2741 share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
2742 if (zfs_check_inconsistent_share2(zhp, spa_version, &share2flag) != 0)
2747 ip->share2flag = share2flag;
2754 ip->share2flag = -1;
2761 share2flag <= ZPROP_SHARE2_CONVERTED) {
2762 if (share2flag == 0) {
2811 ASSERT(0 <= ip->share2flag && ip->share2flag <= ZPROP_SHARE2_NA);
2813 if (ip->share2flag == -1)
2816 if (ip->share2flag == 0) {
2828 if (ip->share2flag <= ZPROP_SHARE2_CONVERTED) {
2878 if (ip->share2flag == 0) {
2881 } else if (ip->share2flag <= ZPROP_SHARE2_CONVERTED) {
3912 int share2flag;
3926 share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
3928 &share2flag) != 0)
3931 if (share2flag == 0) {
3939 } else if (share2flag >= ZPROP_SHARE2_NA) {
4689 int spa_version, share2flag, newshare2;
4709 share2flag = zfs_prop_get_int(zhp, ZFS_PROP_SHARE2);
4710 if (share2flag >= ZPROP_SHARE2_NA) {
4730 share2flag = ZPROP_SHARE2_CONVERTED;
4749 ASSERT(share2flag <= ZPROP_SHARE2_CONVERTED);
4760 if (share2flag == newshare2) {
4761 if (share2flag == 0) {
4769 ASSERT3S(share2flag, >=, 0);
4770 ASSERT3S(share2flag, <, newshare2);
4779 if (share2flag < ZPROP_SHARE2_CONVERTED &&
4787 share2flag = ZPROP_SHARE2_CONVERTED;
4790 if (share2flag == newshare2)
4794 if (share2flag == 0 && newshare2 >= ZPROP_SHARE2_NA) {