Home
last modified time | relevance | path

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

12

/titanic_44/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c69 char fsname[FSTYPSZ + 1]; member
91 static int fstyp_ident_one(struct fstyp_handle *h, const char *fsname,
94 const char *fsname);
96 char *mdir, char *fsname, fstyp_module_t **mpp);
165 fstyp_ident(struct fstyp_handle *h, const char *fsname, const char **ident) in fstyp_ident() argument
167 if (fsname == NULL) { in fstyp_ident()
170 return (fstyp_ident_one(h, fsname, ident)); in fstyp_ident()
183 *ident = &h->ident->fsname[0]; in fstyp_ident_all()
196 *ident = &mp->fsname[0]; in fstyp_ident_all()
208 fstyp_ident_one(struct fstyp_handle *h, const char *fsname, const char **ident) in fstyp_ident_one() argument
[all …]
H A Dlibfstyp.h74 int fstyp_ident(fstyp_handle_t handle, const char *fsname,
/titanic_44/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()
/titanic_44/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);
/titanic_44/usr/src/cmd/rexd/
H A Dwhere.c71 where(pn, host, fsname, within) in where() argument
74 char *fsname;
121 return (findmount(qualpn, host, fsname, within));
136 findmount(qualpn, host, fsname, within) in findmount() argument
139 char *fsname;
209 strncpy(fsname, endhost, MAXPATHLEN);
233 strncpy(fsname, qualpn, bestlen);
234 fsname[bestlen] = 0;
240 qualpn, host, fsname, within);
H A Dmount_nfs.c99 mount_nfs(char *fsname, char *dir, char *error) in mount_nfs() argument
130 printf("mount_nfs request: mount %s\tdir %s\n", fsname, dir); in mount_nfs()
135 path = strchr(fsname, ':'); in mount_nfs()
137 errprintf(error, "No host name in %s\n", fsname); in mount_nfs()
141 strcpy(host, fsname); in mount_nfs()
161 fsname, host); in mount_nfs()
270 fsname); in mount_nfs()
304 fsname); in mount_nfs()
369 if (mount(fsname, dir, flags, fstype, &args, sizeof (args)) < 0) { in mount_nfs()
373 fsname, dir, strerror(errno)); in mount_nfs()
[all …]
H A Dwhere_main.c50 char fsname[MAXPATHLEN]; local
74 where(pn, host, fsname, within);
77 printf("%s:%s%s\n", host, fsname, within);
H A Drpc.rexd.c832 char *p, *wdhost, *fsname, *subdir; local
866 fsname = rst->rst_fsname;
870 fsname = defaultDir;
882 hostname, fsname);
891 strcpy(dirbuf, fsname);
899 strcat(wanted, fsname);
1288 AlreadyMounted(fsname, mountedon) in AlreadyMounted() argument
1289 char *fsname; in AlreadyMounted()
1301 if (strcmp(mt.mnt_special, fsname) == 0) {
H A Don.c209 char fsname[MAXPATHLEN]; in main() local
398 if (findmount(curdir, wdhost, fsname, dirwithin) == 0) { in main()
405 fsname, dirwithin); in main()
415 curdir, wdhost, fsname); in main()
423 rst.rst_fsname = (void *)fsname; in main()
/titanic_44/usr/src/uts/common/os/
H A Dswapgeneric.c585 getfstype(char *askfor, char *fsname, size_t fsnamelen) in getfstype() argument
599 for (*fsname = '\0'; *fsname == '\0'; *fsname = '\0') { in getfstype()
601 console_gets(fsname, fsnamelen); in getfstype()
602 if (*fsname == '\0') in getfstype()
603 (void) strcpy(fsname, defaultfs); in getfstype()
605 if (strcmp(fsname, "nfs2") == 0) in getfstype()
606 (void) strcpy(fsname, "nfs"); in getfstype()
607 else if (strcmp(fsname, "nfs") == 0) in getfstype()
608 (void) strcpy(fsname, "nfsdyn"); in getfstype()
610 if ((vsw = vfs_getvfssw(fsname)) != NULL) in getfstype()
[all …]
H A Dmodconf.c941 char *fsname; in mod_installfs() local
955 fsname = modl->fs_vfsdef->name; in mod_installfs()
960 fsname = modl->fs_vfsdef->name; in mod_installfs()
963 fsname = mcp->mod_modname; in mod_installfs()
966 fsname = "<unknown file system type>"; in mod_installfs()
969 cmn_err(CE_WARN, "file system '%s' version mismatch", fsname); in mod_installfs()
976 if ((vswp = vfs_getvfsswbyname(fsname)) == NULL) { in mod_installfs()
977 if ((vswp = allocate_vfssw(fsname)) == NULL) { in mod_installfs()
984 cmn_err(CE_WARN, "no room for '%s' in vfssw!", fsname); in mod_installfs()
1021 err = (*(modl->fs_vfsdef->init))(fstype, fsname); in mod_installfs()
/titanic_44/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 …]
/titanic_44/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()
228 if (strcmp(fsname, pfsname) || strcmp(volname, pvolname)) { in ckilabel()
245 char fsname[LABELSIZ+1]; in wilabel() local
250 if (n = ckstr(fsname, NULL, LABELSIZ, NULL, NULL, NULL, in wilabel()
254 (void) strcpy(fsname, origfsname); in wilabel()
265 cdevice, fsname, volname); in wilabel()
269 cdevice, fsname, volname); in wilabel()
[all …]
/titanic_44/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()
229 mdb_printf("%0?p %-15s %s\n", addr, fsname, buf); in fsinfo()
323 char fsname[_ST_FSTYPSZ]; in next_realvp() local
331 if (read_fsname((uintptr_t)outvn->v_vfsp, fsname) == -1) in next_realvp()
[all …]
/titanic_44/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c173 lzc_create(const char *fsname, dmu_objset_type_t type, nvlist_t *props) in lzc_create() argument
180 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL); in lzc_create()
186 lzc_clone(const char *fsname, const char *origin, in lzc_clone() argument
194 error = lzc_ioctl(ZFS_IOC_CLONE, fsname, args, NULL); in lzc_clone()
664 lzc_rollback(const char *fsname, char *snapnamebuf, int snapnamelen) in lzc_rollback() argument
671 err = lzc_ioctl(ZFS_IOC_ROLLBACK, fsname, args, &result); in lzc_rollback()
734 lzc_get_bookmarks(const char *fsname, nvlist_t *props, nvlist_t **bmarks) in lzc_get_bookmarks() argument
736 return (lzc_ioctl(ZFS_IOC_GET_BOOKMARKS, fsname, props, bmarks)); in lzc_get_bookmarks()
/titanic_44/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c1107 get_objset_mdn(dnode_phys_t *mosmdn, char *fsname, uint64_t *obj, in get_objset_mdn() argument
1117 if (fsname == NULL && obj) { in get_objset_mdn()
1133 if (fsname == NULL) { in get_objset_mdn()
1140 while (*fsname && !grub_isspace(*fsname) && *fsname != '/') in get_objset_mdn()
1141 fsname++; in get_objset_mdn()
1143 while (*fsname && !grub_isspace(*fsname)) { in get_objset_mdn()
1146 while (*fsname == '/') in get_objset_mdn()
1147 fsname++; in get_objset_mdn()
1149 cname = fsname; in get_objset_mdn()
1150 while (*fsname && !grub_isspace(*fsname) && *fsname != '/') in get_objset_mdn()
[all …]
/titanic_44/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()
/titanic_44/usr/src/uts/common/cpr/
H A Dcpr_misc.c1069 char *fsname; in cpr_is_ufs() local
1071 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_is_ufs()
1072 return (strcmp(fsname, "ufs") == 0); in cpr_is_ufs()
1078 char *fsname; in cpr_is_zfs() local
1080 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_is_zfs()
1081 return (strcmp(fsname, "zfs") == 0); in cpr_is_zfs()
1095 char *fsname; in cpr_reusable_mount_check() local
1109 fsname = vfssw[vfsp->vfs_fstype].vsw_name; in cpr_reusable_mount_check()
1111 if (strcmp(fsname, *cpp) == 0) in cpr_reusable_mount_check()
1122 fsname); in cpr_reusable_mount_check()
/titanic_44/usr/src/uts/common/syscall/
H A Dsysfs.c83 sysfsind(char *fsname) in sysfsind() argument
93 retval = copyinstr(fsname, fsbuf, FSTYPSZ, &len); in sysfsind()
/titanic_44/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)
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fsinfo.c197 char *fsname = "NTFS"; in smb_com_trans2_query_fs_information() local
313 length = smb_wcequiv_strlen(fsname); in smb_com_trans2_query_fs_information()
317 length = strlen(fsname); in smb_com_trans2_query_fs_information()
345 fsname); in smb_com_trans2_query_fs_information()
/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c825 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() argument
832 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); in gather_nvlist()
1362 char *fsname; in dump_filesystems() local
1372 VERIFY(nvlist_lookup_string(fslist, "name", &fsname) == 0); in dump_filesystems()
1400 zhp = zfs_open(rzhp->zfs_hdl, fsname, ZFS_TYPE_DATASET); in dump_filesystems()
2286 char *fsname, *snapname; in created_before() local
2298 VERIFY(0 == nvlist_lookup_string(nvfs, "name", &fsname)); in created_before()
2299 (void) snprintf(buf, sizeof (buf), "%s@%s", fsname, snapname); in created_before()
2305 VERIFY(0 == nvlist_lookup_string(nvfs, "name", &fsname)); in created_before()
2306 (void) snprintf(buf, sizeof (buf), "%s@%s", fsname, snapname); in created_before()
[all …]
/titanic_44/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()
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_dataset.h268 int dsl_dataset_rename_snapshot(const char *fsname,
270 int dsl_dataset_snapshot_tmp(const char *fsname, const char *snapname,
342 int dsl_dataset_rollback(const char *fsname, void *owner, nvlist_t *result);
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c1225 char fsname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_secpolicy_hold() local
1226 error = dmu_fsname(nvpair_name(pair), fsname); in zfs_secpolicy_hold()
1229 error = zfs_secpolicy_write_perms(fsname, in zfs_secpolicy_hold()
1246 char fsname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_secpolicy_release() local
1247 error = dmu_fsname(nvpair_name(pair), fsname); in zfs_secpolicy_release()
1250 error = zfs_secpolicy_write_perms(fsname, in zfs_secpolicy_release()
2688 zfs_check_userprops(const char *fsname, nvlist_t *nvl) in zfs_check_userprops() argument
2700 if (error = zfs_secpolicy_write_perms(fsname, in zfs_check_userprops()
3220 zfs_ioc_create(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_create() argument
3248 if (strchr(fsname, '@') || in zfs_ioc_create()
[all …]

12