/titanic_50/usr/src/uts/common/fs/dev/ |
H A D | sdev_zvolops.c | 68 sdev_zvol_create_minor(char *dsname) in sdev_zvol_create_minor() argument 72 return ((*szcm)(dsname)); in sdev_zvol_create_minor() 76 sdev_zvol_name2minor(char *dsname, minor_t *minor) in sdev_zvol_name2minor() argument 80 return ((*szn2m)(dsname, minor)); in sdev_zvol_name2minor() 173 devzvol_objset_check(char *dsname, dmu_objset_type_t *type) in devzvol_objset_check() argument 180 (void) strlcpy(zc->zc_name, dsname, MAXPATHLEN); in devzvol_objset_check() 182 ispool = (strchr(dsname, '/') == NULL) ? B_TRUE : B_FALSE; in devzvol_objset_check() 183 if (!ispool && sdev_zvol_name2minor(dsname, NULL) == 0) { in devzvol_objset_check() 211 char *dsname; in devzvol_make_dsname() local 237 dsname = kmem_zalloc(dslen, KM_SLEEP); in devzvol_make_dsname() [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_common.kshlib | 126 typeset dsname=${fullname%%@*} 130 for ds in $($ZFS list -r -Ho name -t snapshot $dsname | \ 158 typeset dsname=${fullname%%@*} 159 typeset parent_fs=${dsname##*/} 160 typeset rb_fs=${dsname}/%rollback 186 typeset dsname=${cmd##* } 191 for ds in $($ZFS list -r -Ho name -t filesystem $dsname); do 212 typeset is_set lflag dflag dsname gname gid uname uid opt str code tmp 224 dsname=${cmd##* } 245 $GREP "permission $subcmd $dsname ([0-9]*) $code" \ [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_prop.h | 77 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp); 91 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl); 92 int dsl_prop_set_int(const char *dsname, const char *propname, 94 int dsl_prop_set_string(const char *dsname, const char *propname, 96 int dsl_prop_inherit(const char *dsname, const char *propname, 103 boolean_t dsl_prop_get_hasrecvd(const char *dsname); 104 int dsl_prop_set_hasrecvd(const char *dsname); 105 void dsl_prop_unset_hasrecvd(const char *dsname);
|
H A D | dsl_userhold.h | 46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl);
|
H A D | dsl_dataset.h | 310 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source, 312 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
|
H A D | zfs_vfsops.h | 154 extern int zfs_check_global_label(const char *dsname, const char *hexsl);
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | dsl_prop.c | 313 dsl_prop_get(const char *dsname, const char *propname, in dsl_prop_get() argument 319 error = dmu_objset_hold(dsname, FTAG, &os); in dsl_prop_get() 767 dsl_prop_set_int(const char *dsname, const char *propname, in dsl_prop_set_int() argument 774 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_int() 780 dsl_prop_set_string(const char *dsname, const char *propname, in dsl_prop_set_string() argument 787 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_string() 793 dsl_prop_inherit(const char *dsname, const char *propname, in dsl_prop_inherit() argument 800 error = dsl_props_set(dsname, source, nvl); in dsl_prop_inherit() 901 dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *props) in dsl_props_set() argument 906 dpsa.dpsa_dsname = dsname; in dsl_props_set() [all …]
|
H A D | zfs_ioctl.c | 609 zfs_secpolicy_setprop(const char *dsname, zfs_prop_t prop, nvpair_t *propval, in zfs_secpolicy_setprop() argument 637 if (dsl_prop_get_integer(dsname, "zoned", &zoned, in zfs_secpolicy_setprop() 640 if (!zoned || strlen(dsname) <= strlen(setpoint)) in zfs_secpolicy_setprop() 652 err = zfs_set_slabel_policy(dsname, strval, CRED()); in zfs_secpolicy_setprop() 659 return (zfs_secpolicy_write_perms(dsname, zfs_prop_to_name(prop), cr)); in zfs_secpolicy_setprop() 1418 getzfsvfs(const char *dsname, zfsvfs_t **zfvp) in getzfsvfs() argument 1423 error = dmu_objset_hold(dsname, FTAG, &os); in getzfsvfs() 2392 zfs_prop_set_userquota(const char *dsname, nvpair_t *pair) in zfs_prop_set_userquota() argument 2427 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE); in zfs_prop_set_userquota() 2445 zfs_prop_set_special(const char *dsname, zprop_source_t source, in zfs_prop_set_special() argument [all …]
|
H A D | dsl_bookmark.c | 309 dsl_get_bookmarks(const char *dsname, nvlist_t *props, nvlist_t *outnvl) in dsl_get_bookmarks() argument 315 err = dsl_pool_hold(dsname, FTAG, &dp); in dsl_get_bookmarks() 318 err = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_get_bookmarks()
|
H A D | dsl_userhold.c | 633 dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl) in dsl_dataset_get_holds() argument 639 err = dsl_pool_hold(dsname, FTAG, &dp); in dsl_dataset_get_holds() 642 err = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_dataset_get_holds()
|
H A D | dsl_scan.c | 1051 char *dsname = kmem_alloc(MAXNAMELEN, KM_SLEEP); in dsl_scan_visitds() local 1052 dsl_dataset_name(ds, dsname); in dsl_scan_visitds() 1055 dsobj, dsname, in dsl_scan_visitds() 1058 kmem_free(dsname, MAXNAMELEN); in dsl_scan_visitds() 1082 char *dsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in dsl_scan_visitds() local 1083 dsl_dataset_name(ds, dsname); in dsl_scan_visitds() 1086 (longlong_t)dsobj, dsname, in dsl_scan_visitds() 1090 kmem_free(dsname, ZFS_MAX_DATASET_NAME_LEN); in dsl_scan_visitds()
|
H A D | dsl_deleg.c | 647 dsl_deleg_access(const char *dsname, const char *perm, cred_t *cr) in dsl_deleg_access() argument 653 error = dsl_pool_hold(dsname, FTAG, &dp); in dsl_deleg_access() 656 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_deleg_access()
|
H A D | dsl_dataset.c | 1286 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in dsl_dataset_snapshot_check() local 1296 (void) strlcpy(dsname, name, atp - name + 1); in dsl_dataset_snapshot_check() 1299 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_dataset_snapshot_check() 1462 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in dsl_dataset_snapshot_sync() local 1466 (void) strlcpy(dsname, name, atp - name + 1); in dsl_dataset_snapshot_sync() 1467 VERIFY0(dsl_dataset_hold(dp, dsname, FTAG, &ds)); in dsl_dataset_snapshot_sync() 3230 dsl_dataset_set_refquota(const char *dsname, zprop_source_t source, in dsl_dataset_set_refquota() argument 3235 ddsqra.ddsqra_name = dsname; in dsl_dataset_set_refquota() 3239 return (dsl_sync_task(dsname, dsl_dataset_set_refquota_check, in dsl_dataset_set_refquota() 3345 dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source, in dsl_dataset_set_refreservation() argument [all …]
|
H A D | dsl_destroy.c | 967 dsl_destroy_inconsistent(const char *dsname, void *arg) in dsl_destroy_inconsistent() argument 971 if (dmu_objset_hold(dsname, FTAG, &os) == 0) { in dsl_destroy_inconsistent() 983 (void) dsl_destroy_head(dsname); in dsl_destroy_inconsistent()
|
H A D | zfs_vfsops.c | 1326 zfs_check_global_label(const char *dsname, const char *hexsl) in zfs_check_global_label() argument 1336 if (dsl_prop_get_integer(dsname, in zfs_check_global_label()
|
H A D | spa.c | 4182 char *dsname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in spa_tryimport() local 4186 (void) strlcpy(dsname, tmpname, in spa_tryimport() 4189 (void) snprintf(dsname, MAXPATHLEN, in spa_tryimport() 4193 ZPOOL_CONFIG_BOOTFS, dsname) == 0); in spa_tryimport() 4194 kmem_free(dsname, MAXPATHLEN); in spa_tryimport()
|
/titanic_50/usr/src/lib/libdscfg/common/ |
H A D | cfg_cluster.c | 428 char *dsname = NULL; in cfg_dgname() local 456 minor(stb.st_rdev), &dsname); in cfg_dgname() 470 strncpy(buffer, dsname, buflen); in cfg_dgname() 471 free(dsname); in cfg_dgname() 501 scstat_ds_name_t dsname; in init_sc_entry() local 525 dsname = NULL; in init_sc_entry() 527 err = scstat_get_ds_status((scstat_ds_name_t *)dsname, &dsstatus); in init_sc_entry()
|
H A D | cfg_cluster.h | 222 scstat_errno_t scstat_get_ds_status(scstat_ds_name_t *dsname, 334 char **dsname);
|
/titanic_50/usr/src/lib/pyzfs/common/ |
H A D | dataset.py | 215 for dsname in dsnames: 216 if not "@" in dsname: 218 _("cannot open %s") % dsname, 221 ds = Dataset(dsname) 227 (base, snapname) = dsname.split('@')
|
H A D | userspace.py | 187 dsname = args[0] 205 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
|
/titanic_50/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 84 get_stats_for_obj(differ_info_t *di, const char *dsname, uint64_t obj, in get_stats_for_obj() argument 90 (void) strlcpy(zc.zc_name, dsname, sizeof (zc.zc_name)); in get_stats_for_obj() 115 "object %lld in %s"), obj, dsname); in get_stats_for_obj()
|
H A D | libzfs_pool.c | 3719 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in zpool_obj_to_path() local 3737 (void) strlcpy(dsname, zc.zc_value, sizeof (dsname)); in zpool_obj_to_path() 3740 mounted = is_mounted(zhp->zpool_hdl, dsname, &mntpnt); in zpool_obj_to_path() 3743 (void) strlcpy(zc.zc_name, dsname, sizeof (zc.zc_name)); in zpool_obj_to_path() 3752 dsname, zc.zc_value); in zpool_obj_to_path() 3755 (void) snprintf(pathname, len, "%s:<0x%llx>", dsname, obj); in zpool_obj_to_path()
|
H A D | libzfs_dataset.c | 713 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_open() local 721 assert(bookp - path < sizeof (dsname)); in zfs_open() 722 (void) strncpy(dsname, path, bookp - path); in zfs_open() 723 dsname[bookp - path] = '\0'; in zfs_open() 729 if ((pzhp = make_dataset_handle(hdl, dsname)) == NULL) { in zfs_open()
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 1100 const char *dsname = NULL; in mdb_gelf_symtab_create_file() local 1111 dsname = gsp->gs_name; in mdb_gelf_symtab_create_file() 1117 if (dsname == NULL) in mdb_gelf_symtab_create_file() 1131 return (mdb_gelf_symtab_create_file_by_name(gf, dsname, ssname, tabid)); in mdb_gelf_symtab_create_file() 1136 const char *dsname, const char *ssname, uint_t tabid) in mdb_gelf_symtab_create_file_by_name() argument 1156 if (strcmp(gsp->gs_name, dsname) == 0) { in mdb_gelf_symtab_create_file_by_name()
|
/titanic_50/usr/src/cmd/ztest/ |
H A D | ztest.c | 3181 ztest_dataset_create(char *dsname) in ztest_dataset_create() argument 3184 int err = dmu_objset_create(dsname, DMU_OST_OTHER, 0, in ztest_dataset_create() 3191 (void) printf("Setting dataset %s to sync always\n", dsname); in ztest_dataset_create() 3192 return (ztest_dsl_prop_set_uint64(dsname, ZFS_PROP_SYNC, in ztest_dataset_create() 5487 ztest_dataset_name(char *dsname, char *pool, int d) in ztest_dataset_name() argument 5489 (void) snprintf(dsname, ZFS_MAX_DATASET_NAME_LEN, "%s/ds_%d", pool, d); in ztest_dataset_name()
|