Lines Matching refs:fsname
1299 * Given a MOS metadnode, get the metadnode of a given filesystem name (fsname),
1303 * If no fsname and no obj are given, return the DSL_DIR metadnode.
1304 * If fsname is given, return its metadnode and its matching object number.
1309 get_filesystem_dnode(dnode_end_t *mosmdn, char *fsname,
1328 while (*fsname) {
1332 while (*fsname == '/')
1333 fsname++;
1335 if (!*fsname || *fsname == '@')
1338 cname = fsname;
1339 while (*fsname && !isspace(*fsname) && *fsname != '/')
1340 fsname++;
1341 ch = *fsname;
1342 *fsname = 0;
1358 *fsname = ch;
1393 char *fsname, *snapname;
1403 fsname = strdup(fullpath);
1408 fsname = malloc(ptr_at - fullpath + 1);
1409 if (!fsname)
1411 memcpy(fsname, fullpath, ptr_at - fullpath);
1412 fsname[ptr_at - fullpath] = 0;
1416 free(fsname);
1428 printf("zfs fsname = '%s' snapname='%s' filename = '%s'\n",
1429 fsname, snapname, filename);
1433 err = get_filesystem_dnode(&(data->mos), fsname, dn, data);
1436 free(fsname);
1445 free(fsname);
1462 free(fsname);
1474 free(fsname);
1479 free(fsname);