Lines Matching defs:sh_name
475 * read a share (packed nvlist) named 'sh_name'
479 zfs_share_read(zfs_handle_t *zhp, const char *sh_name, nvlist_t **share)
488 sh_name, zfs_get_name(zhp));
498 rc = sa_share_read(ZFS_LIBSHARE_HDL(zhp), mountpoint, sh_name,
601 zfs_share_remove(zfs_handle_t *zhp, const char *sh_name)
611 sh_name, zfs_get_name(zhp));
621 rc = sa_share_remove(shdl, sh_name, mountpoint, B_TRUE);
1574 make_share_filename(const char *mntpnt, const char *sh_name)
1580 + strlen("/") + strlen(sh_name) + 1;
1586 mntpnt, SA_SHARE_DIR, sh_name);
1593 zfssa_share_storage_write_one_s0(zfs_handle_t *ds_zhp, const char *sh_name,
1660 strcmp(sh_name, oldname) != 0) {
1664 sh_name, oldname);
1763 zfssa_share_storage_write_one_s2(zfs_handle_t *ds_zhp, const char *sh_name,
1776 (char *)zfs_get_name(ds_zhp), (char *)mntpnt, (char *)sh_name,
1790 sh_name, strerror(errno));
1832 zfs_share_add_named_share_for_auto(zfs_handle_t *zhp, const char *sh_name,
1851 (void) strlcpy(zc.zc_value, sh_name, sizeof (zc.zc_value));
1864 "%s%%%s", zfs_get_name(zhp), sh_name);
1962 zfssa_share_storage_write_one_s3(zfs_handle_t *ds_zhp, const char *sh_name,
1986 zfs_get_name(ds_zhp), sh_name);
2015 zfssa_share_storage_write_one(zfs_handle_t *ds_zhp, const char *sh_name,
2054 if ((sh_fname = make_share_filename(mntpnt, sh_name)) == NULL) {
2061 (char *)mntpnt, (char *)sh_name);
2097 ret = zfssa_share_storage_write_one_s3(ds_zhp, sh_name,
2100 ret = zfssa_share_storage_write_one_s2(ds_zhp, sh_name,
2104 ret = zfssa_share_storage_write_one_s0(ds_zhp, sh_name,
2112 (char *)sh_name, B_FALSE);
2133 char *sh_name;
2137 if ((sh_name = sa_share_get_name(share)) == NULL)
2158 ret = zfssa_share_storage_write_one(zhp, sh_name, mntpnt, share,
2233 const char *sh_name, nvlist_t **sharep)
2245 if (strcmp(sh_name, sa_share_get_name(share1)) == 0) {
2253 if (strcmp(sh_name, sa_share_get_name(share2)) == 0) {
2265 const char *mntpnt, const char *sh_name, nvlist_t **sharep)
2273 if ((sh_fname = make_share_filename(mntpnt, sh_name)) == NULL) {
2298 (char *)sh_name, buf, stbuf.st_size);
2308 sh_name, strerror(errno));
2334 zfs_share_open_byname(zfs_handle_t *zhp, const char *sh_name)
2347 sh_name);
2350 if (sh_zhp == NULL && zfs_matches_auto_share(zhp, sh_name,
2371 const char *sh_name, sa_proto_t *protosp)
2390 if (sh_name == NULL ||
2400 sh_zhp = zfs_share_open_byname(zhp, sh_name);
2436 const char *sh_name, sa_proto_t proto, char **propvalp)
2448 if (sh_name == NULL ||
2451 * For libsharev2 and earlier, or if sh_name is NULL,
2460 sh_zhp = zfs_share_open_byname(zhp, sh_name);
2505 const char *sh_name, sa_proto_t proto, const char *propval)
2515 if (sh_name == NULL ||
2518 * For libsharev2 and earlier, or if sh_name is NULL,
2527 sh_zhp = zfs_share_open_byname(zhp, sh_name);
2539 const char *sh_name, nvlist_t **sharep)
2575 sh_name, sharep);
2582 zfs_get_name(zhp), mntpnt, sh_name, sharep);
2591 sh_zhp = zfs_share_open_byname(zhp, sh_name);
4219 zfs_active_protos(const char *sh_name, const char *sh_path)
4224 if (sa_share_lookup(sh_name, sh_path, SA_PROT_ANY, &share) != SA_OK)
4351 char *sh_name = dp->d_name;
4354 if (strcmp(sh_name, ".") == 0 ||
4355 strcmp(sh_name, "..") == 0) {
4359 if ((sh_fname = make_share_filename(mntpnt, sh_name)) == NULL) {
4400 char *sh_name = dp->d_name;
4403 if (strcmp(sh_name, ".") == 0 ||
4404 strcmp(sh_name, "..") == 0) {
4408 if ((sh_fname = make_share_filename(mntpnt, sh_name)) == NULL) {
4416 (char *)sh_name, dummy, 0);
4497 char *sh_name;
4623 sh_name = sa_share_get_name(smbshare);
4624 ASSERT(sh_name != NULL);
4635 if (zfs_matches_auto_share(zhp, sh_name, &matches_auto) == 0 &&
4638 sh_name);
4828 char *sh_name = sa_share_get_name(share);
4834 ret = zfssa_share_storage_write_one(zhp, sh_name,