Home
last modified time | relevance | path

Searched refs:fsname (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c69 char fsname[FSTYPSZ + 1]; member
94 const char *fsname);
167 if (fsname == NULL) { in fstyp_ident()
183 *ident = &h->ident->fsname[0]; in fstyp_ident_all()
196 *ident = &mp->fsname[0]; in fstyp_ident_all()
214 if (strcmp(h->ident->fsname, fsname) == 0) { in fstyp_ident_one()
215 *ident = (char *)fsname; in fstyp_ident_one()
222 if (strlen(fsname) > FSTYPSZ) { in fstyp_ident_one()
237 *ident = (char *)fsname; in fstyp_ident_one()
347 if (strcmp(mp->fsname, fsname) == 0) { in fstyp_find_module_by_name()
[all …]
H A Dlibfstyp.h74 int fstyp_ident(fstyp_handle_t handle, const char *fsname,
/illumos-gate/usr/src/cmd/dfs.cmds/dfshares/
H A Ddfshares.c74 char *fsname = NULL; /* file system name */ in main() local
97 err |= (fsname != NULL); /* at most one -F */ in main()
98 fsname = optarg; in main()
134 while (fsname = getfs(dfp)) { in main()
136 FSCMD, fsname, cmd); in main()
169 if (fsname) { /* generate fs specific command name */ in main()
170 if (invalid(fsname, dfp)) { /* valid ? */ in main()
178 FSCMD, fsname, cmd); in main()
179 } else if (fsname = getfs(dfp)) /* use 1st line in dfstypes */ in main()
180 (void) snprintf(subcmd, sizeof (subcmd), FSCMD, fsname, cmd); in main()
/illumos-gate/usr/src/cmd/dfs.cmds/general/
H A Dgeneral.c71 char *fsname = NULL; /* file system name */ local
87 err |= (fsname != NULL); /* at most one -F */
88 fsname = optarg;
109 if (fsname) { /* generate fs specific command name */
110 if (invalid(fsname, dfp)) { /* valid ? */
117 FSCMD, fsname, cmd);
119 } else if (fsname = getfs(dfp)) { /* use 1st line in dfstypes */
120 (void) snprintf(subcmd, sizeof (subcmd), FSCMD, fsname, cmd);
/illumos-gate/usr/src/uts/common/os/
H A Dswapgeneric.c599 for (*fsname = '\0'; *fsname == '\0'; *fsname = '\0') { in getfstype()
601 console_gets(fsname, fsnamelen); in getfstype()
602 if (*fsname == '\0') in getfstype()
606 (void) strcpy(fsname, "nfs"); in getfstype()
614 } else if (*fsname == '\0') { in getfstype()
615 fsname = defaultfs; in getfstype()
617 if (*fsname == '\0') { in getfstype()
622 if (strcmp(fsname, "nfs2") == 0) in getfstype()
623 (void) strcpy(fsname, "nfs"); in getfstype()
625 (void) strcpy(fsname, "nfsdyn"); in getfstype()
[all …]
H A Dmodconf.c945 char *fsname; in mod_installfs() local
959 fsname = modl->fs_vfsdef->name; in mod_installfs()
964 fsname = modl->fs_vfsdef->name; in mod_installfs()
967 fsname = mcp->mod_modname; in mod_installfs()
970 fsname = "<unknown file system type>"; in mod_installfs()
973 cmn_err(CE_WARN, "file system '%s' version mismatch", fsname); in mod_installfs()
980 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs()
981 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs()
988 cmn_err(CE_WARN, "no room for '%s' in vfssw!", fsname); in mod_installfs()
1025 err = (*(modl->fs_vfsdef->init))(fstype, fsname); in mod_installfs()
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/
H A Dlabelit.c85 char *fsname = NULL; in main() local
105 fsname = argv[1]; in main()
106 if (strlen(fsname) > 6) { in main()
122 label(special, fsname, volume); in main()
136 label(char *special, char *fsname, char *volume) in label() argument
145 if (fsname == NULL) { in label()
196 if (sblock.fs_cpc <= 0 && (fsname || volume)) { in label()
213 if (fsname != NULL) { in label()
216 for (i = 0; (i < 6) && (fsname[i]); i++, p++) in label()
217 *p = fsname[i]; in label()
[all …]
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c266 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL); in lzc_create()
282 error = lzc_ioctl(ZFS_IOC_CLONE, fsname, args, NULL); in lzc_clone()
311 lzc_remap(const char *fsname) in lzc_remap() argument
315 error = lzc_ioctl(ZFS_IOC_REMAP, fsname, args, NULL); in lzc_remap()
338 lzc_destroy(const char *fsname) in lzc_destroy() argument
739 char fsname[MAXPATHLEN]; in recv_impl() local
747 (void) strlcpy(fsname, snapname, sizeof (fsname)); in recv_impl()
748 atp = strchr(fsname, '@'); in recv_impl()
754 if (!lzc_exists(fsname)) { in recv_impl()
755 char *slashp = strrchr(fsname, '/'); in recv_impl()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_modconf.c80 char *fsname = def->name; in fake_installfs() local
86 cmn_err(CE_WARN, "file system '%s' version mismatch", fsname); in fake_installfs()
93 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in fake_installfs()
94 if ((vswp = allocate_vfssw(fsname)) == NULL) { in fake_installfs()
101 cmn_err(CE_WARN, "no room for '%s' in vfssw!", fsname); in fake_installfs()
132 err = (*(def->init))(fstype, fsname); in fake_installfs()
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetvol.c183 char fsname[LABELSIZ+1], volname[LABELSIZ+1]; in ckilabel() local
187 (void) strncpy(fsname, label, LABELSIZ); in ckilabel()
188 fsname[LABELSIZ] = '\0'; in ckilabel()
189 if (pt = strchr(fsname, ',')) { in ckilabel()
245 char fsname[LABELSIZ+1]; in wilabel() local
254 (void) strcpy(fsname, origfsname); in wilabel()
265 cdevice, fsname, volname); in wilabel()
269 cdevice, fsname, volname); in wilabel()
277 (void) sprintf(label, "%s,%s", fsname, volname); in wilabel()
482 labelerr(char *fsname, char *volname) in labelerr() argument
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dvfs.c95 read_fsname(uintptr_t vfsp, char *fsname) in read_fsname() argument
123 if (mdb_readstr(fsname, _ST_FSTYPSZ, in read_fsname()
139 strcpy(fsname, "doorfs"); in read_fsname()
145 strcpy(fsname, "portfs"); in read_fsname()
160 strncpy(fsname, testname, _ST_FSTYPSZ); in read_fsname()
186 char fsname[_ST_FSTYPSZ]; in fsinfo() local
226 if (read_fsname(addr, fsname) == -1) in fsinfo()
323 char fsname[_ST_FSTYPSZ]; in next_realvp() local
342 if (strcmp(fsname, "fifofs") == 0) { in next_realvp()
351 } else if (strcmp(fsname, "namefs") == 0) { in next_realvp()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c1139 if (fsname == NULL) { in get_objset_mdn()
1146 while (*fsname && !grub_isspace(*fsname) && *fsname != '/') in get_objset_mdn()
1147 fsname++; in get_objset_mdn()
1149 while (*fsname && !grub_isspace(*fsname)) { in get_objset_mdn()
1153 fsname++; in get_objset_mdn()
1155 cname = fsname; in get_objset_mdn()
1156 while (*fsname && !grub_isspace(*fsname) && *fsname != '/') in get_objset_mdn()
1157 fsname++; in get_objset_mdn()
1158 ch = *fsname; in get_objset_mdn()
1159 *fsname = 0; in get_objset_mdn()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_qinfo_fs.c223 char *fsname; in smb2_qfs_attr() local
231 fsname = "PIPE"; in smb2_qfs_attr()
234 fsname = "NTFS"; /* A lie, but compatible... */ in smb2_qfs_attr()
241 namelen = smb_wcequiv_strlen(fsname); in smb2_qfs_attr()
266 fsname); in smb2_qfs_attr()
H A Dsmb_fsinfo.c166 char *fsname = "NTFS"; in smb_com_trans2_query_fs_information() local
282 length = smb_wcequiv_strlen(fsname); in smb_com_trans2_query_fs_information()
286 length = strlen(fsname); in smb_com_trans2_query_fs_information()
314 fsname); in smb_com_trans2_query_fs_information()
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c81 const char *fsname; in main() local
137 if ((error = fstyp_ident(h, modfsname, &fsname)) != 0) { in main()
146 (void) printf("%s\n", fsname); in main()
187 char *fsname = NULL; in getmodfsname() local
204 fsname = fsname_buf; in getmodfsname()
209 return (fsname); in getmodfsname()
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_misc.c1071 char *fsname; in cpr_is_ufs() local
1073 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_is_ufs()
1074 return (strcmp(fsname, "ufs") == 0); in cpr_is_ufs()
1080 char *fsname; in cpr_is_zfs() local
1082 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_is_zfs()
1083 return (strcmp(fsname, "zfs") == 0); in cpr_is_zfs()
1097 char *fsname; in cpr_reusable_mount_check() local
1111 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_reusable_mount_check()
1113 if (strcmp(fsname, *cpp) == 0) in cpr_reusable_mount_check()
1124 fsname); in cpr_reusable_mount_check()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_iter.c212 const char *fsname = lua_tostring(state, 1); in zcp_snapshots_list() local
217 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, fsname, FTAG); in zcp_snapshots_list()
226 "argument %s cannot be a snapshot", fsname)); in zcp_snapshots_list()
313 const char *fsname = lua_tostring(state, 1); in zcp_children_list() local
318 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, fsname, FTAG); in zcp_children_list()
328 "argument %s cannot be a snapshot", fsname)); in zcp_children_list()
H A Dzfs_ioctl.c1315 char fsname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_secpolicy_hold() local
1336 char fsname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_secpolicy_release() local
3327 if (strchr(fsname, '@') || in zfs_ioc_create()
3328 strchr(fsname, '%')) in zfs_ioc_create()
3398 (void) dsl_destroy_head(fsname); in zfs_ioc_create()
3430 if (strchr(fsname, '@') || in zfs_ioc_clone()
3431 strchr(fsname, '%')) in zfs_ioc_clone()
3446 (void) dsl_destroy_head(fsname); in zfs_ioc_clone()
3459 if (strchr(fsname, '@') || in zfs_ioc_remap()
3460 strchr(fsname, '%')) in zfs_ioc_remap()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsysfs.c83 sysfsind(char *fsname) in sysfsind() argument
93 retval = copyinstr(fsname, fsbuf, FSTYPSZ, &len); in sysfsind()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c259 boolean_t new_key, const char *fsname, in libzfs_getpassphrase() argument
289 if (fsname != NULL) in libzfs_getpassphrase()
290 (void) printf(" for '%s'", fsname); in libzfs_getpassphrase()
358 if ((ret = libzfs_getpassphrase(keyformat, B_FALSE, newkey, fsname, in get_key_interactive()
374 ret = libzfs_getpassphrase(keyformat, B_TRUE, newkey, fsname, &buf2, in get_key_interactive()
463 const char *fsname, zfs_keyformat_t keyformat, boolean_t newkey, in get_key_material_file() argument
522 ret = get_key_interactive(hdl, fsname, keyformat, in get_key_material()
538 fsname, keyformat, newkey, &km, &kmlen)) != 0) in get_key_material()
707 const char *fsname = (zhp) ? zfs_get_name(zhp) : NULL; in populate_create_encryption_params_nvlists() local
711 fsname, &key_material, &key_material_len, NULL); in populate_create_encryption_params_nvlists()
[all …]
H A Dlibzfs_sendrecv.c615 const char *fsname; member
979 sd.fsname = fsname; in gather_nvlist()
1525 char *fsname; in dump_filesystems() local
2626 char *fsname, *snapname; in created_before() local
2717 fsname); in recv_fix_encryption_hierarchy()
2725 cp = strchr(fsname, '@'); in recv_fix_encryption_hierarchy()
2752 err = lzc_change_key(fsname, in recv_fix_encryption_hierarchy()
2855 char *fsname, *stream_fsname; in recv_incremental_replication() local
3009 fsname, fromsnap); in recv_incremental_replication()
3019 s1 = strrchr(fsname, '/'); in recv_incremental_replication()
[all …]
/illumos-gate/usr/src/lib/pyzfs/common/
H A Dallow.py362 (perms, fsname) = mungeargs(3)
369 (perms, fsname) = mungeargs(2)
376 (perms, fsname) = mungeargs(2)
379 (perms, fsname) = mungeargs(3)
388 ds = zfs.dataset.Dataset(fsname, snaps=False)
/illumos-gate/usr/src/cmd/fs.d/
H A Dfsck.c97 char *fsname; member
674 bdp->name, bdp->fsname, WTERMSIG(status)); in waiter()
695 len = strlen(lp->name) + strlen(lp->fsname) + 5; in print_badlist()
703 printf("%s (%s)%s", lp->name, lp->fsname, in print_badlist()
724 dp->fsname = strdup(vfsp->vfs_mountp); in newdev()
725 if (dp->name == NULL || dp->fsname == NULL) { in newdev()
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_policy.c35 secpolicy_fs_allowed_mount(const char *fsname) in secpolicy_fs_allowed_mount() argument
/illumos-gate/usr/src/cmd/fs.d/udfs/labelit/
H A Dlabelit.c55 static int8_t fsname[BUF_LEN]; variable
176 fsname, BUF_LEN, FSNAME_STR_LEN, in main()
388 &fsname[1], fsname_len - 1); in label_vds()

12