Searched refs:libhd (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 106 libzfs_handle_t *libhd; in smbd_vss_get_count() local 113 if ((libhd = libzfs_init()) == NULL) in smbd_vss_get_count() 116 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_count() 117 libzfs_fini(libhd); in smbd_vss_get_count() 121 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_get_count() 122 libzfs_fini(libhd); in smbd_vss_get_count() 134 libzfs_fini(libhd); in smbd_vss_get_count() 152 libzfs_handle_t *libhd; in smbd_vss_get_snapshots() local 174 if ((libhd = libzfs_init()) == NULL) { in smbd_vss_get_snapshots() 179 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_snapshots() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_sd.c | 59 libzfs_handle_t *libhd; in srvsvc_shareacl_getpath() local 63 if ((libhd = libzfs_init()) == NULL) in srvsvc_shareacl_getpath() 66 ret = smb_getdataset(libhd, si->shr_path, dataset, MAXPATHLEN); in srvsvc_shareacl_getpath() 68 libzfs_fini(libhd); in srvsvc_shareacl_getpath() 73 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in srvsvc_shareacl_getpath() 74 libzfs_fini(libhd); in srvsvc_shareacl_getpath() 81 libzfs_fini(libhd); in srvsvc_shareacl_getpath() 86 libzfs_fini(libhd); in srvsvc_shareacl_getpath()
|
H A D | smb_share.c | 2242 libzfs_handle_t *libhd; in smb_shr_zfs_add() local 2247 if ((libhd = libzfs_init()) == NULL) in smb_shr_zfs_add() 2250 if (smb_getdataset(libhd, si->shr_path, buf, MAXPATHLEN) != 0) { in smb_shr_zfs_add() 2251 libzfs_fini(libhd); in smb_shr_zfs_add() 2255 if ((zfshd = zfs_open(libhd, buf, ZFS_TYPE_FILESYSTEM)) == NULL) { in smb_shr_zfs_add() 2256 libzfs_fini(libhd); in smb_shr_zfs_add() 2261 ret = zfs_smb_acl_add(libhd, buf, si->shr_path, si->shr_name); in smb_shr_zfs_add() 2280 libzfs_fini(libhd); in smb_shr_zfs_add() 2290 libzfs_handle_t *libhd; in smb_shr_zfs_remove() local 2294 if ((libhd = libzfs_init()) == NULL) in smb_shr_zfs_remove() [all …]
|