From 092c39d9d680cc372d6ad04ba56fe2de43977a2d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 22 Mar 2012 11:02:23 -0400 Subject: [PATCH] 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 --- sys/nfs41_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 5d59cf9..2dd7051 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -5089,7 +5089,7 @@ NTSTATUS nfs41_SetFileInformation( goto out; } if (rinfo->RootDirectory) { - status = STATUS_NOT_SUPPORTED; + status = STATUS_INVALID_PARAMETER; goto out; } nfs41_fcb->Flags = 0; @@ -5109,7 +5109,7 @@ NTSTATUS nfs41_SetFileInformation( goto out; } if (linfo->RootDirectory) { - status = STATUS_NOT_SUPPORTED; + status = STATUS_INVALID_PARAMETER; goto out; } nfs41_fcb->Flags = 0;