renamed do_lookup to open_for_attributes

This commit is contained in:
Olga Kornievskaia 2011-08-23 12:20:45 -04:00
parent dcde6457e7
commit 90b650fab8

View file

@ -286,7 +286,7 @@ out:
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 (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;
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) {
dprintf(1, "nfs41_lookup failed with %d\n", status);
goto out_free_state;