renamed do_lookup to open_for_attributes
This commit is contained in:
parent
dcde6457e7
commit
90b650fab8
1 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ out:
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOLEAN do_lookup(uint32_t type, ULONG access_mask, ULONG disposition)
|
static BOOLEAN open_for_attributes(uint32_t type, ULONG access_mask, ULONG disposition)
|
||||||
{
|
{
|
||||||
if (type == NF4DIR) {
|
if (type == NF4DIR) {
|
||||||
if (disposition == FILE_OPEN || disposition == FILE_OVERWRITE) {
|
if (disposition == FILE_OPEN || disposition == FILE_OVERWRITE) {
|
||||||
|
|
@ -554,7 +554,7 @@ static int handle_open(nfs41_upcall *upcall)
|
||||||
state->file.fh.superblock = state->parent.fh.superblock;
|
state->file.fh.superblock = state->parent.fh.superblock;
|
||||||
|
|
||||||
status = NO_ERROR;
|
status = NO_ERROR;
|
||||||
} else if (do_lookup(state->type, args->access_mask, args->disposition)) {
|
} else if (open_for_attributes(state->type, args->access_mask, args->disposition)) {
|
||||||
if (status) {
|
if (status) {
|
||||||
dprintf(1, "nfs41_lookup failed with %d\n", status);
|
dprintf(1, "nfs41_lookup failed with %d\n", status);
|
||||||
goto out_free_state;
|
goto out_free_state;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue