[driver] changing error return values
instead of returning STATUS_INVALID_PARAMETER, return STATUS_NOT_SUPPORTED for query classes we don't support in volume and file queries.
This commit is contained in:
parent
60b73b282d
commit
75c96068e9
1 changed files with 4 additions and 4 deletions
|
|
@ -3888,7 +3888,7 @@ NTSTATUS nfs41_QueryDirectory(
|
||||||
default:
|
default:
|
||||||
print_error("nfs41_QueryDirectory: unhandled dir query class %d\n",
|
print_error("nfs41_QueryDirectory: unhandled dir query class %d\n",
|
||||||
InfoClass);
|
InfoClass);
|
||||||
status = STATUS_INVALID_PARAMETER;
|
status = STATUS_NOT_SUPPORTED;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
status = nfs41_UpcallCreate(NFS41_DIR_QUERY, &nfs41_fobx->sec_ctx,
|
status = nfs41_UpcallCreate(NFS41_DIR_QUERY, &nfs41_fobx->sec_ctx,
|
||||||
|
|
@ -4046,7 +4046,7 @@ NTSTATUS nfs41_QueryVolumeInformation(
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
case FileAccessInformation:
|
case FileAccessInformation:
|
||||||
status = STATUS_INVALID_PARAMETER;
|
status = STATUS_NOT_SUPPORTED;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
case FileFsAttributeInformation:
|
case FileFsAttributeInformation:
|
||||||
|
|
@ -4071,7 +4071,7 @@ NTSTATUS nfs41_QueryVolumeInformation(
|
||||||
|
|
||||||
default:
|
default:
|
||||||
print_error("nfs41_QueryVolumeInformation: unhandled class %d\n", InfoClass);
|
print_error("nfs41_QueryVolumeInformation: unhandled class %d\n", InfoClass);
|
||||||
status = STATUS_INVALID_PARAMETER;
|
status = STATUS_NOT_SUPPORTED;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
status = nfs41_UpcallCreate(NFS41_VOLUME_QUERY, &nfs41_fobx->sec_ctx,
|
status = nfs41_UpcallCreate(NFS41_VOLUME_QUERY, &nfs41_fobx->sec_ctx,
|
||||||
|
|
@ -4770,7 +4770,7 @@ NTSTATUS nfs41_QueryFileInformation(
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
print_error("nfs41_QueryFileInformation: unhandled class %d\n", InfoClass);
|
print_error("nfs41_QueryFileInformation: unhandled class %d\n", InfoClass);
|
||||||
status = STATUS_INVALID_PARAMETER;
|
status = STATUS_NOT_SUPPORTED;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue