Lines Matching refs:nd_flag

147 	if ((nd->nd_flag & ND_NFSV4) &&  in nfsrvd_access()
213 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_access()
218 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_access()
255 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_getattr()
301 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_getattr()
389 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_setattr()
412 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_setattr()
431 } else if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV4)) in nfsrvd_setattr()
459 if (nd->nd_repstat == 0 && (nd->nd_flag & ND_NFSV4) != 0 && in nfsrvd_setattr()
464 if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV4)) { in nfsrvd_setattr()
547 if (nd->nd_flag & (ND_NFSV2 | ND_NFSV3)) { in nfsrvd_setattr()
556 if (nd->nd_flag & ND_NFSV3) in nfsrvd_setattr()
558 else if (nd->nd_flag & ND_NFSV4) in nfsrvd_setattr()
571 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_setattr()
608 if (dp->v_type == VLNK && (nd->nd_flag & ND_NFSV4)) { in nfsrvd_lookup()
631 if (nd->nd_flag & ND_NFSV3) in nfsrvd_lookup()
636 if (nd->nd_flag & ND_NFSV3) in nfsrvd_lookup()
642 if ((nd->nd_flag & ND_NFSV4) != 0 && !NFSVNO_EXPORTED(exp) && in nfsrvd_lookup()
658 if (!(nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) in nfsrvd_lookup()
665 if (nd->nd_flag & ND_NFSV3) in nfsrvd_lookup()
671 if (nd->nd_flag & ND_NFSV3) in nfsrvd_lookup()
675 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_lookup()
678 } else if (nd->nd_flag & ND_NFSV3) { in nfsrvd_lookup()
708 if (nd->nd_flag & ND_NFSV2) in nfsrvd_readlink()
714 if ((nd->nd_flag & ND_EXTPG) != 0) in nfsrvd_readlink()
721 if (nd->nd_flag & ND_NFSV3) in nfsrvd_readlink()
724 if (nd->nd_flag & ND_NFSV3) in nfsrvd_readlink()
773 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_read()
777 } else if (nd->nd_flag & ND_NFSV3) { in nfsrvd_read()
793 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_read()
802 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_read()
803 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_read()
808 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_read()
810 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_read()
817 if ((nd->nd_flag & ND_DSSERVER) != 0 && in nfsrvd_read()
843 if (nd->nd_flag & ND_NFSV3) in nfsrvd_read()
867 if (nd->nd_repstat == 0 && (nd->nd_flag & (ND_NFSV4 | ND_DSSERVER)) == in nfsrvd_read()
873 if (nd->nd_flag & ND_NFSV3) in nfsrvd_read()
896 if ((nd->nd_flag & ND_EXTPG) != 0 || (cnt > MCLBYTES && in nfsrvd_read()
897 (nd->nd_flag & (ND_TLS | ND_SAVEREPLY)) == ND_TLS && in nfsrvd_read()
898 (nd->nd_flag & (ND_NFSV4 | ND_NFSV41)) != ND_NFSV4)) in nfsrvd_read()
904 if (!(nd->nd_flag & ND_NFSV4)) { in nfsrvd_read()
913 if (nd->nd_flag & ND_NFSV3) in nfsrvd_read()
919 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_read()
923 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_read()
939 nd->nd_flag |= ND_EXTPG; in nfsrvd_read()
984 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_write()
989 } else if (nd->nd_flag & ND_NFSV3) { in nfsrvd_write()
1005 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_write()
1006 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_write()
1011 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_write()
1013 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_write()
1020 if ((nd->nd_flag & ND_DSSERVER) != 0 && in nfsrvd_write()
1052 if (nd->nd_flag & ND_NFSV3) in nfsrvd_write()
1073 if (nd->nd_repstat == 0 && (nd->nd_flag & (ND_NFSV4 | ND_DSSERVER)) == in nfsrvd_write()
1079 if (nd->nd_flag & ND_NFSV3) in nfsrvd_write()
1096 if (nd->nd_flag & ND_NFSV4) in nfsrvd_write()
1103 if (nd->nd_flag & (ND_NFSV3 | ND_NFSV4)) { in nfsrvd_write()
1104 if (nd->nd_flag & ND_NFSV3) in nfsrvd_write()
1176 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_create()
1221 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_create()
1233 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_create()
1242 if (nd->nd_flag & ND_NFSV3) in nfsrvd_create()
1250 if (!(nd->nd_flag & ND_NFSV2)) { in nfsrvd_create()
1284 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_create()
1347 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_mknod()
1386 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_mknod()
1394 if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV3) && in nfsrvd_mknod()
1404 if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV4)) { in nfsrvd_mknod()
1418 if (nd->nd_flag & ND_NFSV3) in nfsrvd_mknod()
1440 if (nd->nd_flag & ND_NFSV3) in nfsrvd_mknod()
1448 if (nd->nd_flag & ND_NFSV3) in nfsrvd_mknod()
1456 if ((nd->nd_flag & ND_NFSV4) && (vtyp == VDIR || vtyp == VLNK)) { in nfsrvd_mknod()
1482 if ((nd->nd_flag & ND_NFSV3) && !nd->nd_repstat) in nfsrvd_mknod()
1495 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_mknod()
1507 if (nd->nd_flag & ND_NFSV3) in nfsrvd_mknod()
1566 if (!(nd->nd_flag & ND_NFSV2)) { in nfsrvd_remove()
1575 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_remove()
1590 if (!(nd->nd_flag & ND_NFSV2)) { in nfsrvd_remove()
1596 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_remove()
1638 if (!(nd->nd_flag & ND_NFSV2)) in nfsrvd_rename()
1657 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_rename()
1717 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_rename()
1736 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_rename()
1753 nd->nd_flag, nd->nd_cred, p); in nfsrvd_rename()
1762 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_rename()
1765 } else if ((nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) { in nfsrvd_rename()
1809 if (nd->nd_flag & ND_NFSV4) in nfsrvd_link()
1817 if (nd->nd_flag & ND_NFSV4) { in nfsrvd_link()
1854 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_link()
1864 if ((nd->nd_flag & (ND_IMPLIEDCLID | ND_NFSV41)) == in nfsrvd_link()
1870 if (nd->nd_flag & ND_NFSV3) in nfsrvd_link()
1877 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_link()
1880 } else if ((nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) { in nfsrvd_link()
1932 if (dirp != NULL && !(nd->nd_flag & ND_NFSV3)) { in nfsrvd_symlink()
1955 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_symlink()
1982 !(nd->nd_flag & ND_NFSV2), nd->nd_saveduid, nd->nd_cred, p, exp); in nfsrvd_symlinksub()
1983 if (!nd->nd_repstat && !(nd->nd_flag & ND_NFSV2)) { in nfsrvd_symlinksub()
1985 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_symlinksub()
2001 if ((nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) { in nfsrvd_symlinksub()
2040 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_mkdir()
2055 if (dirp != NULL && !(nd->nd_flag & ND_NFSV3)) { in nfsrvd_mkdir()
2065 if (nd->nd_flag & ND_NFSV3) in nfsrvd_mkdir()
2079 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_mkdir()
2120 if (!(nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) in nfsrvd_mkdirsub()
2134 if ((nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) { in nfsrvd_mkdirsub()
2166 if (nd->nd_flag & ND_NFSV3) in nfsrvd_commit()
2181 if (nd->nd_flag & ND_NFSV3) in nfsrvd_commit()
2184 if (nd->nd_flag & ND_NFSV3) { in nfsrvd_commit()
2227 if (nd->nd_flag & ND_NFSV3) in nfsrvd_statfs()
2231 if (nd->nd_flag & ND_NFSV2) { in nfsrvd_statfs()
2421 if ((nd->nd_flag & ND_NFSV41) != 0 && in nfsrvd_lock()
2426 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_lock()
2438 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_lock()
2439 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lock()
2444 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lock()
2446 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_lock()
2467 if ((nd->nd_flag & ND_NFSV41) != 0 && in nfsrvd_lock()
2472 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_lock()
2484 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_lock()
2485 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lock()
2490 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lock()
2492 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_lock()
2548 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_lock()
2550 nd->nd_flag |= ND_CURSTATEID; in nfsrvd_lock()
2643 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_lockt()
2644 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lockt()
2649 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_lockt()
2651 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_lockt()
2752 if ((nd->nd_flag & ND_NFSV41) != 0 && stp->ls_stateid.seqid == 1 && in nfsrvd_locku()
2755 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_locku()
2778 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_locku()
2779 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_locku()
2784 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_locku()
2786 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_locku()
2866 NFSV4OPEN_WANTPUSHDELEG)) != 0 && (nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_open()
2928 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_open()
2929 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_open()
2934 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_open()
2936 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_open()
3203 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_open()
3205 nd->nd_flag |= ND_CURSTATEID; in nfsrvd_open()
3338 if ((nd->nd_flag & ND_NFSV41) != 0 && stp->ls_stateid.seqid == 1 && in nfsrvd_close()
3341 if ((nd->nd_flag & ND_CURSTATEID) != 0) in nfsrvd_close()
3352 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_close()
3353 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_close()
3358 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_close()
3360 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_close()
3374 if ((nd->nd_flag & ND_CURSTATEID) != 0 && in nfsrvd_close()
3378 nd->nd_flag &= ~ND_CURSTATEID; in nfsrvd_close()
3408 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_delegpurge()
3409 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_delegpurge()
3414 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_delegpurge()
3416 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_delegpurge()
3445 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_delegreturn()
3446 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_delegreturn()
3451 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_delegreturn()
3453 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_delegreturn()
3499 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_openconfirm()
3515 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_openconfirm()
3516 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_openconfirm()
3521 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_openconfirm()
3523 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_openconfirm()
3572 if ((nd->nd_flag & ND_NFSV41) != 0 && stp->ls_stateid.seqid == 1 && in nfsrvd_opendowngrade()
3575 if ((nd->nd_flag & ND_CURSTATEID) != 0) in nfsrvd_opendowngrade()
3585 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_opendowngrade()
3620 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_opendowngrade()
3621 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_opendowngrade()
3626 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_opendowngrade()
3628 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_opendowngrade()
3636 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_opendowngrade()
3638 nd->nd_flag |= ND_CURSTATEID; in nfsrvd_opendowngrade()
3662 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_renew()
3671 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_renew()
3672 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_renew()
3677 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_renew()
3679 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_renew()
3736 savflag = nd->nd_flag; in nfsrvd_secinfo()
3747 nd->nd_flag = savflag; in nfsrvd_secinfo()
3880 savflag = nd->nd_flag; in nfsrvd_secinfononame()
3891 nd->nd_flag = savflag; in nfsrvd_secinfononame()
3991 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_setclientid()
4006 if (nd->nd_flag & ND_GSS) in nfsrvd_setclientid()
4022 if (nd->nd_flag & ND_GSS) { in nfsrvd_setclientid()
4024 if (nd->nd_flag & ND_GSSINTEGRITY) in nfsrvd_setclientid()
4026 else if (nd->nd_flag & ND_GSSPRIVACY) in nfsrvd_setclientid()
4031 if ((nd->nd_flag & ND_GSS) && nd->nd_princlen > 0) { in nfsrvd_setclientid()
4042 if (nd->nd_flag & ND_TLS) in nfsrvd_setclientid()
4144 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_setclientidcfrm()
4240 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_releaselckown()
4260 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_releaselckown()
4261 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_releaselckown()
4266 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_releaselckown()
4268 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_releaselckown()
4321 if (nd->nd_flag & ND_GSS) in nfsrvd_exchangeid()
4359 if ((nd->nd_flag & ND_GSS) != 0) { in nfsrvd_exchangeid()
4361 if ((nd->nd_flag & ND_GSSINTEGRITY) != 0) in nfsrvd_exchangeid()
4363 else if ((nd->nd_flag & ND_GSSPRIVACY) != 0) in nfsrvd_exchangeid()
4367 if ((nd->nd_flag & ND_NFSV42) != 0) in nfsrvd_exchangeid()
4369 if ((nd->nd_flag & ND_GSS) != 0 && nd->nd_princlen > 0) { in nfsrvd_exchangeid()
4396 if ((nd->nd_flag & (ND_GSSINTEGRITY | ND_GSSPRIVACY)) == 0 || in nfsrvd_exchangeid()
4619 nd->nd_flag |= ND_HASSEQUENCE; in nfsrvd_sequence()
4766 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_freestateid()
4778 if (nd->nd_repstat == 0 && (nd->nd_flag & ND_CURSTATEID) != 0 && in nfsrvd_freestateid()
4782 nd->nd_flag &= ~ND_CURSTATEID; in nfsrvd_freestateid()
4830 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_layoutget()
4855 if ((nd->nd_flag & ND_NFSV41) != 0) { in nfsrvd_layoutget()
4857 nd->nd_flag |= ND_CURSTATEID; in nfsrvd_layoutget()
4913 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_layoutcommit()
5000 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_layoutreturn()
5082 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_layouterror()
5160 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_layoutstats()
5206 if ((nd->nd_flag & ND_CURSTATEID) != 0) { in nfsrvd_ioadvise()
5414 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_allocate()
5415 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_allocate()
5420 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_allocate()
5422 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_allocate()
5429 if ((nd->nd_flag & ND_DSSERVER) != 0) in nfsrvd_allocate()
5513 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) { in nfsrvd_deallocate()
5514 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_deallocate()
5519 if ((nd->nd_flag & ND_NFSV41) != 0) in nfsrvd_deallocate()
5521 nd->nd_flag |= ND_IMPLIEDCLID; in nfsrvd_deallocate()
5528 if ((nd->nd_flag & ND_DSSERVER) != 0) in nfsrvd_deallocate()
5636 if ((nd->nd_flag & ND_IMPLIEDCLID) != 0) in nfsrvd_copy_file_range()
5669 if ((nd->nd_flag & ND_DSSERVER) != 0 || cnt != 0) in nfsrvd_copy_file_range()
5923 nd->nd_maxresp, nd->nd_cred, nd->nd_flag, in nfsrvd_getxattr()
5936 nd->nd_flag |= ND_EXTPG; in nfsrvd_getxattr()
6081 if ((nd->nd_flag & ND_IMPLIEDCLID) == 0) { in nfsrvd_rmxattr()