Lines 2570-2575
tryagain:
Link Here
|
2570 |
/* |
2570 |
/* |
2571 |
* For Delegate_Cur, search for the matching Delegation, |
2571 |
* For Delegate_Cur, search for the matching Delegation, |
2572 |
* which indicates no conflict. |
2572 |
* which indicates no conflict. |
|
|
2573 |
* For NFSv4.1/4.2 Claim_Deleg_Cur_FH only provides |
2574 |
* the clientid, which is the first two "other" elements |
2575 |
* for the stateid. This should be sufficient, since there |
2576 |
* is only one delegation per client and file. |
2573 |
* An old delegation should have been recovered by the |
2577 |
* An old delegation should have been recovered by the |
2574 |
* client doing a Claim_DELEGATE_Prev, so I won't let |
2578 |
* client doing a Claim_DELEGATE_Prev, so I won't let |
2575 |
* it match and return NFSERR_EXPIRED. Should I let it |
2579 |
* it match and return NFSERR_EXPIRED. Should I let it |
Lines 2580-2587
tryagain:
Link Here
|
2580 |
(((nd->nd_flag & ND_NFSV41) != 0 && |
2584 |
(((nd->nd_flag & ND_NFSV41) != 0 && |
2581 |
stateidp->seqid == 0) || |
2585 |
stateidp->seqid == 0) || |
2582 |
stateidp->seqid == stp->ls_stateid.seqid) && |
2586 |
stateidp->seqid == stp->ls_stateid.seqid) && |
2583 |
!NFSBCMP(stateidp->other, stp->ls_stateid.other, |
2587 |
stateidp->other[0] == stp->ls_stateid.other[0] && |
2584 |
NFSX_STATEIDOTHER)) |
2588 |
stateidp->other[1] == stp->ls_stateid.other[1]) |
2585 |
break; |
2589 |
break; |
2586 |
} |
2590 |
} |
2587 |
if (stp == LIST_END(&lfp->lf_deleg) || |
2591 |
if (stp == LIST_END(&lfp->lf_deleg) || |
Lines 2832-2837
tryagain:
Link Here
|
2832 |
/* |
2836 |
/* |
2833 |
* For Delegate_Cur, search for the matching Delegation, |
2837 |
* For Delegate_Cur, search for the matching Delegation, |
2834 |
* which indicates no conflict. |
2838 |
* which indicates no conflict. |
|
|
2839 |
* For NFSv4.1/4.2 Claim_Deleg_Cur_FH only provides |
2840 |
* the clientid, which is the first two "other" elements |
2841 |
* for the stateid. This should be sufficient, since there |
2842 |
* is only one delegation per client and file. |
2835 |
* An old delegation should have been recovered by the |
2843 |
* An old delegation should have been recovered by the |
2836 |
* client doing a Claim_DELEGATE_Prev, so I won't let |
2844 |
* client doing a Claim_DELEGATE_Prev, so I won't let |
2837 |
* it match and return NFSERR_EXPIRED. Should I let it |
2845 |
* it match and return NFSERR_EXPIRED. Should I let it |
Lines 2842-2849
tryagain:
Link Here
|
2842 |
(((nd->nd_flag & ND_NFSV41) != 0 && |
2850 |
(((nd->nd_flag & ND_NFSV41) != 0 && |
2843 |
stateidp->seqid == 0) || |
2851 |
stateidp->seqid == 0) || |
2844 |
stateidp->seqid == stp->ls_stateid.seqid) && |
2852 |
stateidp->seqid == stp->ls_stateid.seqid) && |
2845 |
!NFSBCMP(stateidp->other, stp->ls_stateid.other, |
2853 |
stateidp->other[0] == stp->ls_stateid.other[0] && |
2846 |
NFSX_STATEIDOTHER)) |
2854 |
stateidp->other[1] == stp->ls_stateid.other[1]) |
2847 |
break; |
2855 |
break; |
2848 |
} |
2856 |
} |
2849 |
if (stp == LIST_END(&lfp->lf_deleg) || |
2857 |
if (stp == LIST_END(&lfp->lf_deleg) || |