Lines Matching defs:delegated

2128 nfs_open_file_add_open(struct nfs_open_file *nofp, uint32_t accessMode, uint32_t denyMode, int delegated)
2134 if (delegated) {
2188 * the new modes will be and whether the open was delegated.
2197 int *delegated)
2243 *delegated = (nofp->nof_d_r != 0);
2245 *delegated = (nofp->nof_d_w != 0);
2247 *delegated = (nofp->nof_d_rw != 0);
2249 *delegated = 0;
2252 *delegated = (nofp->nof_d_r_dw != 0);
2254 *delegated = (nofp->nof_d_w_dw != 0);
2256 *delegated = (nofp->nof_d_rw_dw != 0);
2258 *delegated = 0;
2261 *delegated = (nofp->nof_d_r_drw != 0);
2263 *delegated = (nofp->nof_d_w_drw != 0);
2265 *delegated = (nofp->nof_d_rw_drw != 0);
2267 *delegated = 0;
2278 int delegated = 0;
2281 nfs_open_file_remove_open_find(nofp, accessMode, denyMode, &newAccessMode, &newDenyMode, &delegated);
2286 if (delegated) {
2288 NP(nofp->nof_np, "nfs: open(R) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2298 if (delegated) {
2300 NP(nofp->nof_np, "nfs: open(W) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2310 if (delegated) {
2312 NP(nofp->nof_np, "nfs: open(RW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2324 if (delegated) {
2326 NP(nofp->nof_np, "nfs: open(R,DW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2336 if (delegated) {
2338 NP(nofp->nof_np, "nfs: open(W,DW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2348 if (delegated) {
2350 NP(nofp->nof_np, "nfs: open(RW,DW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2362 if (delegated) {
2364 NP(nofp->nof_np, "nfs: open(R,DRW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2374 if (delegated) {
2376 NP(nofp->nof_np, "nfs: open(W,DRW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2386 if (delegated) {
2388 NP(nofp->nof_np, "nfs: open(RW,DRW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2666 int error = 0, accessMode, denyMode, delegated;
2757 delegated = 1;
2765 delegated = 0;
2777 delegated = 1;
2785 delegated = 0;
2820 nfs_open_file_add_open(nofp, accessMode, denyMode, delegated);
3730 /* with a write delegation, just take the lock delegated */
3741 * If we don't have any non-delegated opens but we do have
3742 * delegated opens, then we need to first claim the delegated
4067 int delegated = (TAILQ_FIRST(&nlop->nlo_locks)->nfl_flags & NFS_FILE_LOCK_DELEGATED);
4068 while (!delegated && nflp) {
4086 if (!delegated) {
4960 * Send an OPEN RPC to claim a delegated open for a file
5106 // printf("nfs: open delegated claim didn't return a delegation %s\n", filename ? filename : "???");
5114 printf("nfs: open delegated claim returned a different delegation type! have %s got %s %s\n",
5199 * We're making a delegated claim.
5208 // printf("nfs: open claim delegated (%d, %d) succeeded for %s\n", share_access, share_deny, filename ? filename : "???");
5554 * Claim the delegated open combinations this open file holds.
5632 /* if we've already set reopen, we should move these other two opens from delegated to not delegated */
5688 /* claim delegated locks */
5696 /* skip non-delegated locks */
5701 NP(nofp->nof_np, "nfs: delegated lock claim (0x%llx, 0x%llx) failed %d, %d",
5706 // NP(nofp->nof_np, "nfs: delegated lock claim (0x%llx, 0x%llx) succeeded, %d",
5721 NP(nofp->nof_np, "nfs delegated lock claim error %d, %d", error, kauth_cred_getuid(nofp->nof_owner->noo_cred));
5727 /* delegated state lost (once held but now not claimable) */
5728 NP(nofp->nof_np, "nfs delegated state claim error %d, state lost, %d", error, kauth_cred_getuid(nofp->nof_owner->noo_cred));
5762 /* send an unlock if not a delegated lock */
5836 * Claim the delegated open combinations that each of this node's open files hold.
5846 /* walk the open file list looking for opens with delegated state to claim */
5915 /* claim any delegated state */