Lines Matching defs:rc

483 	int rc;
498 rc = sa_share_read(ZFS_LIBSHARE_HDL(zhp), mountpoint, sh_name,
502 if (rc != SA_OK) {
503 if (rc != SA_SHARE_NOT_FOUND) {
504 zfs_error_aux(hdl, sa_strerror(rc));
519 int rc;
529 rc = sa_share_read_init(ZFS_LIBSHARE_HDL(zhp), mountpoint,
533 if (rc != SA_OK) {
534 if (rc != SA_SHARE_NOT_FOUND) {
536 "%s"), sa_strerror(rc));
550 int rc;
552 if ((rc = sa_share_read_next(ZFS_LIBSHARE_HDL(zhp), hdl,
554 if (rc != SA_SHARE_NOT_FOUND) {
558 "%s"), sa_strerror(rc));
585 int rc;
587 if ((rc = sa_share_write(shdl, share, persist, publish)) != SA_OK) {
592 if (rc != SA_OK) {
593 zfs_error_aux(hdl, sa_strerror(rc));
597 return (rc);
603 int rc;
621 rc = sa_share_remove(shdl, sh_name, mountpoint, B_TRUE);
624 if (rc != SA_OK) {
626 "%s"), sa_strerror(rc));
1226 int rc;
1236 if ((rc = sa_share_set_path(share, new_path)) != SA_OK)
1237 return (rc);
2170 int rc;
2175 if ((rc = zfssa_strip_mntpnt(share, sh_path, mntpnt)) != SA_OK) {
2176 return (rc);
2188 int rc;
2208 rc = sa_share_read_oldprop_shares(mntpnt, zhp->zfs_name,
2210 if (rc != SA_OK)
2211 return (rc);
2214 if ((rc = strip_mntpnt_share(share1, mntpnt)) != SA_OK)
2219 if ((rc = strip_mntpnt_share(share2, mntpnt)) != SA_OK)
2228 return (rc);
2267 int rc;
2297 rc = zfs_share_resource_read(hdl, (char *)dataset, (char *)mntpnt,
2300 if (rc < 0) {
2313 if ((rc = nvlist_unpack(buf, stbuf.st_size, &nvl, 0)) != 0) {
2315 switch (rc) {
2439 int rc = SA_SHARE_NOT_FOUND;
2455 rc = zfssa_share_prop_get(zhp, proto, propvalp);
2462 rc = zfssa_share_prop_get(sh_zhp, proto, propvalp);
2467 return (rc);
2508 int rc = SA_SHARE_NOT_FOUND;
2522 rc = zfssa_share_prop_set(zhp, proto, propval);
2529 rc = zfssa_share_prop_set(sh_zhp, proto, propval);
2534 return (rc);