Lines Matching refs:comp

1955 	uint32_t len = 0, comp, newcomp, linkcompcount;
2022 for (comp=0; comp <= curcomp; comp++) {
2023 if (nfsp->np_components[comp]) {
2024 FREE(nfsp->np_components[comp], M_TEMP);
2025 nfsp->np_components[comp] = NULL;
2062 for(comp = curcomp + 1; comp < nfsp->np_compcount; comp++,newcomp++) {
2063 nfsp2.np_components[newcomp] = nfsp->np_components[comp];
2064 nfsp->np_components[comp] = NULL;
2082 for (comp=0; comp < nfsp2.np_compcount; comp++)
2083 if (nfsp2.np_components[comp])
2084 FREE(nfsp2.np_components[comp], M_TEMP);
2102 uint32_t bitmap[NFS_ATTR_BITMAP_LEN], comp, comp2;
2142 for (comp=0; comp < nfsp->np_compcount; comp++) {
2143 int slen = strlen(nfsp->np_components[comp]);
2144 MALLOC(fspath.np_components[comp], char *, slen+1, M_TEMP, M_WAITOK|M_ZERO);
2145 if (!fspath.np_components[comp]) {
2149 strlcpy(fspath.np_components[comp], nfsp->np_components[comp], slen+1);
2207 for (comp=0; comp < fspath.np_compcount; ) {
2209 if (fspath.np_components[comp][0] == '.') {
2210 if (fspath.np_components[comp][1] == '\0') {
2212 comp++;
2216 if ((fspath.np_components[comp][1] == '.') &&
2217 (fspath.np_components[comp][2] == '\0'))
2221 comp++;
2227 NFSREQ_SECINFO_SET(&si, NULL, NULL, 0, isdotdot ? NULL : fspath.np_components[comp], 0);
2229 NFSREQ_SECINFO_SET(&si, NULL, dirfh.fh_data, dirfh.fh_len, isdotdot ? NULL : fspath.np_components[comp], 0);
2246 fspath.np_components[comp], strlen(fspath.np_components[comp]), nmp);
2255 if (NMFLAG(nmp, NONAMEDATTR) || !strcmp(fspath.np_components[comp], ".zfs"))
2284 error = nfs4_get_fs_locations(nmp, NULL, dirfh.fh_data, dirfh.fh_len, fspath.np_components[comp], ctx, &nfsls);
2307 fspath2.np_compcount = (fspath.np_compcount - comp - 1) + nfsp->np_compcount;
2329 if ((fspath.np_compcount - comp - 1) > 0)
2330 bcopy(&fspath.np_components[comp+1], &fspath2.np_components[nfsp->np_compcount], (fspath.np_compcount - comp - 1)*sizeof(char*));
2333 FREE(fspath.np_components[comp], M_TEMP);
2334 } while (comp-- > 0);
2341 comp = 0;
2353 error = nfs4_mount_update_path_with_symlink(nmp, &fspath, comp, &dirfh, &depth, &fh, ctx);
2357 comp = 0;
2365 if ((nmp->nm_state & NFSSTA_NEEDSECINFO) && (comp == (fspath.np_compcount-1)) && !isdotdot) {
2368 NFSREQ_SECINFO_SET(&si, NULL, NULL, 0, isdotdot ? NULL : fspath.np_components[comp], 0);
2370 NFSREQ_SECINFO_SET(&si, NULL, dirfh.fh_data, dirfh.fh_len, isdotdot ? NULL : fspath.np_components[comp], 0);
2384 comp++;
2491 for (comp=0; comp < fspath.np_compcount; comp++)
2492 if (fspath.np_components[comp])
2493 FREE(fspath.np_components[comp], M_TEMP);
2920 uint32_t loc, serv, addr, comp;
3000 for (comp = 0; comp < fsp->np_compcount; comp++) {
3009 comp--;
3020 MALLOC(fsp->np_components[comp], char *, val+1, M_TEMP, M_WAITOK|M_ZERO);
3021 if (!fsp->np_components[comp])
3024 error = xb_get_bytes(&xb, fsp->np_components[comp], val, 0); /* component */
3308 uint32_t numlocs, loc, numserv, serv, numaddr, addr, numcomp, comp;
3526 for (comp = 0; !error && (comp < numcomp); comp++)
3529 for (comp = 0; !skipcopy && !error && (comp < relpathcomps); comp++) {
3562 for (comp = 0; !error && (comp < nfsls.nl_locations[loc]->nl_path.np_compcount); comp++)
3563 xb_add_string(error, &xbnew, nfsls.nl_locations[loc]->nl_path.np_components[comp],
3564 strlen(nfsls.nl_locations[loc]->nl_path.np_components[comp]));
4198 uint32_t loc, serv, addr, comp;
4225 for (comp = 0; comp < fsp->np_compcount; comp++)
4226 if (fsp->np_components[comp])
4227 FREE(fsp->np_components[comp], M_TEMP);
4834 uint32_t loc, serv, addr, comp;
5059 for (comp = 0; !error && (comp < nmp->nm_locations.nl_locations[loc]->nl_path.np_compcount); comp++)
5060 xb_add_string(error, &xbinfo, nmp->nm_locations.nl_locations[loc]->nl_path.np_components[comp],
5061 strlen(nmp->nm_locations.nl_locations[loc]->nl_path.np_components[comp]));