open and create accept pointer to attributes
allow callers of nfs41_open() and nfs41_create() to pass arbitrary attributes fo r use with open_args.openhow.how.createattrs and create_args.createattrs
This commit is contained in:
parent
dc9377ce58
commit
6bb641e547
9 changed files with 56 additions and 49 deletions
|
|
@ -151,7 +151,7 @@ static int recover_open_grace(
|
|||
claim.u.prev.delegate_type = delegation->type;
|
||||
|
||||
return nfs41_open(session, parent, file, owner, &claim, access, deny,
|
||||
OPEN4_NOCREATE, 0, 0, FALSE, stateid, delegation, NULL);
|
||||
OPEN4_NOCREATE, 0, NULL, FALSE, stateid, delegation, NULL);
|
||||
}
|
||||
|
||||
static int recover_open_no_grace(
|
||||
|
|
@ -173,7 +173,7 @@ static int recover_open_no_grace(
|
|||
claim.u.deleg_prev.filename = &file->name;
|
||||
|
||||
status = nfs41_open(session, parent, file, owner,
|
||||
&claim, access, deny, OPEN4_NOCREATE, 0, 0, FALSE,
|
||||
&claim, access, deny, OPEN4_NOCREATE, 0, NULL, FALSE,
|
||||
stateid, delegation, NULL);
|
||||
if (status == NFS4_OK || status == NFS4ERR_BADSESSION)
|
||||
goto out;
|
||||
|
|
@ -193,7 +193,7 @@ static int recover_open_no_grace(
|
|||
access |= OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG;
|
||||
|
||||
status = nfs41_open(session, parent, file, owner,
|
||||
&claim, access, deny, OPEN4_NOCREATE, 0, 0, FALSE,
|
||||
&claim, access, deny, OPEN4_NOCREATE, 0, NULL, FALSE,
|
||||
stateid, delegation, NULL);
|
||||
out:
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue