Lines Matching defs:deny

405  * st_{access,deny}_bmap field of the stateid, in order to track not
415 * track of access/deny bit combinations; so, e.g., we allow:
417 * OPEN allow read, deny write
418 * OPEN allow both, deny none
419 * DOWNGRADE allow read, deny none
469 /* set share deny for a given stateid */
471 set_deny(u32 deny, struct nfs4_ol_stateid *stp)
473 unsigned char mask = 1 << deny;
475 WARN_ON_ONCE(deny > NFS4_SHARE_DENY_BOTH);
479 /* clear share deny for a given stateid */
481 clear_deny(u32 deny, struct nfs4_ol_stateid *stp)
483 unsigned char mask = 1 << deny;
485 WARN_ON_ONCE(deny > NFS4_SHARE_DENY_BOTH);
491 test_deny(u32 deny, struct nfs4_ol_stateid *stp)
493 unsigned char mask = 1 << deny;
735 * the current deny mode of the file 'fp'.
737 * Check if the deny mode, op_share_deny, would conflict with
743 * false - access/deny mode conflict with normal client.
763 /* check file access against deny mode or vice versa */
801 /* Does it conflict with a deny mode already set? */
809 static __be32 nfs4_file_check_deny(struct nfs4_file *fp, u32 deny)
811 /* Common case is that there is no deny mode. */
812 if (deny) {
813 /* Does this deny mode make sense? */
814 if (deny & ~NFS4_SHARE_DENY_BOTH)
817 if ((deny & NFS4_SHARE_DENY_READ) &&
821 if ((deny & NFS4_SHARE_DENY_WRITE) &&
1393 * A stateid that had a deny mode associated with it is being released
1394 * or downgraded. Recalculate the deny mode on the file.
1409 reset_union_bmap_deny(u32 deny, struct nfs4_ol_stateid *stp)
1415 if ((i & deny) != i) {
1421 /* Recalculate per-file deny mode if there was a change */
2619 unsigned int access, deny;
2637 deny = bmap_to_share_mode(ols->st_deny_bmap);
2642 seq_printf(s, "deny: %s%s, ",
2643 deny & NFS4_SHARE_ACCESS_READ ? "r" : "-",
2644 deny & NFS4_SHARE_ACCESS_WRITE ? "w" : "-");
4789 * Called to check deny when READ with all zero stateid or
5207 * Are we trying to set a deny mode that would conflict with
5241 /* Set new deny mask */
5292 /* test and set deny mode */
6976 dprintk("NFSD: deny not a subset of current bitmap: 0x%hhx, input deny=%08x\n",
7204 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny)
7210 xdr_netobj_dup(&deny->ld_owner, &lo->lo_owner.so_owner,
7212 if (!deny->ld_owner.data)
7215 deny->ld_clientid = lo->lo_owner.so_client->cl_clientid;
7218 deny->ld_owner.len = 0;
7219 deny->ld_owner.data = NULL;
7220 deny->ld_clientid.cl_boot = 0;
7221 deny->ld_clientid.cl_id = 0;
7223 deny->ld_start = fl->fl_start;
7224 deny->ld_length = NFS4_MAX_UINT64;
7226 deny->ld_length = fl->fl_end - fl->fl_start + 1;
7227 deny->ld_type = NFS4_READ_LT;
7229 deny->ld_type = NFS4_WRITE_LT;