Lines Matching defs:leaf

74 static void rfs4_ss_clid_write(rfs4_client_t *cp, char *leaf);
75 static void rfs4_ss_clid_write_one(rfs4_client_t *cp, char *dir, char *leaf);
423 rfs4_ss_pnalloc(char *dir, char *leaf)
433 (leaf_len = strlen(leaf)) > MAXNAMELEN ||
440 (void) snprintf(ss_pn->pn, MAXPATHLEN, "%s/%s", dir, leaf);
441 /* Handy pointer to just the leaf name */
442 ss_pn->leaf = ss_pn->pn + dir_len + 1;
448 * Move the "leaf" filename from "sdir" directory
454 rfs4_ss_movestate(char *sdir, char *ddir, char *leaf)
458 if ((src = rfs4_ss_pnalloc(sdir, leaf)) == NULL)
461 if ((dst = rfs4_ss_pnalloc(ddir, leaf)) == NULL) {
533 (void) VOP_REMOVE(dvp, ss_pn->leaf, CRED(), NULL, 0);
579 (void) VOP_REMOVE(dvp, ss_pn->leaf, CRED(), NULL, 0);
751 char *leaf = osp->ss_pn->leaf;
754 rfs4_dss_remove_leaf(sip, NFS4_DSS_OLDSTATE_LEAF, leaf);
886 * First, generate the leaf filename, from the client's IP address and
893 char leaf[MAXNAMELEN], buf[INET6_ADDRSTRLEN];
920 (void) snprintf(leaf, MAXNAMELEN, "%s-%llx", buf,
922 rfs4_ss_clid_write(cp, leaf);
931 rfs4_ss_clid_write(rfs4_client_t *cp, char *leaf)
936 * It should be sufficient to write the leaf file to (all) DSS paths
949 /* write the leaf file to all DSS paths */
957 rfs4_ss_clid_write_one(cp, dss_path->path, leaf);
968 rfs4_ss_clid_write_one(rfs4_client_t *cp, char *dss_path, char *leaf)
985 ss_pn = rfs4_ss_pnalloc(dir, leaf);
998 * We need to record leaf - i.e. the filename - so that we know
1001 * one of several paths with this leaf in it.
1004 if (strcmp(cp->rc_ss_pn->leaf, leaf) == 0) {
1005 /* we've already recorded *this* leaf */
1008 /* replace with this leaf */
1579 * Remove the leaf file from all distributed stable storage paths.
1585 char *leaf = cp->rc_ss_pn->leaf;
1589 * paths we must remove this leaf file instance
1595 /* remove the leaf file associated with this server instance */
1596 rfs4_dss_remove_leaf(sip, NFS4_DSS_STATE_LEAF, leaf);
1602 rfs4_dss_remove_leaf(rfs4_servinst_t *sip, char *dir_leaf, char *leaf)
1618 pathlen = strlen(dir) + strlen(dir_leaf) + strlen(leaf) + 3;
1620 (void) sprintf(path, "%s/%s/%s", dir, dir_leaf, leaf);