driver: change error code for rename, link with RootDirectory

http://msdn.microsoft.com/en-us/library/cc232085%28v=prot.10%29.aspx : "STATUS_INVALID_PARAMETER: An invalid parameter was passed for FileName or FileNameLength, or the target file was open, or the RootDirectory field value was nonzero for a network operation."

as network filesystems are not expected to support this, return STATUS_INVALID_PARAMETER instead of STATUS_NOT_SUPPORTED

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-03-22 11:02:23 -04:00 committed by unknown
parent e83d36544f
commit 092c39d9d6

View file

@ -5089,7 +5089,7 @@ NTSTATUS nfs41_SetFileInformation(
goto out; goto out;
} }
if (rinfo->RootDirectory) { if (rinfo->RootDirectory) {
status = STATUS_NOT_SUPPORTED; status = STATUS_INVALID_PARAMETER;
goto out; goto out;
} }
nfs41_fcb->Flags = 0; nfs41_fcb->Flags = 0;
@ -5109,7 +5109,7 @@ NTSTATUS nfs41_SetFileInformation(
goto out; goto out;
} }
if (linfo->RootDirectory) { if (linfo->RootDirectory) {
status = STATUS_NOT_SUPPORTED; status = STATUS_INVALID_PARAMETER;
goto out; goto out;
} }
nfs41_fcb->Flags = 0; nfs41_fcb->Flags = 0;