[ros-diffs] [pschweitzer] 37674: Added a stubbed for VfatSetRenameInformation (it only handled one obvious case) Have a look to bug #3900

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Wed Nov 26 21:00:19 CET 2008


Author: pschweitzer
Date: Wed Nov 26 14:00:18 2008
New Revision: 37674

URL: http://svn.reactos.org/svn/reactos?rev=37674&view=rev
Log:
Added a stubbed for VfatSetRenameInformation (it only handled one obvious case)
Have a look to bug #3900

Modified:
    branches/pierre-fsd/drivers/filesystems/fastfat/finfo.c

Modified: branches/pierre-fsd/drivers/filesystems/fastfat/finfo.c
URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/drivers/filesystems/fastfat/finfo.c?rev=37674&r1=37673&r2=37674&view=diff
==============================================================================
--- branches/pierre-fsd/drivers/filesystems/fastfat/finfo.c [iso-8859-1] (original)
+++ branches/pierre-fsd/drivers/filesystems/fastfat/finfo.c [iso-8859-1] Wed Nov 26 14:00:18 2008
@@ -748,6 +748,33 @@
   return STATUS_SUCCESS;
 }
 
+NTSTATUS
+VfatSetRenameInformation(PVFAT_IRP_CONTEXT IrpContext)
+{
+  PIRP Irp;
+  PVFATFCB FCB, NewFCB;
+  PIO_STACK_LOCATION Stack;
+  PFILE_OBJECT FileObject, NewFileObject;
+
+  DPRINT1("VfatSetRenameInformation is stubplemented!\n");
+
+  Irp = IrpContext->Irp;
+  Stack = IoGetCurrentIrpStackLocation(Irp);
+
+  FileObject = IrpContext->FileObject;
+  FCB = FileObject->FsContext;
+
+  NewFileObject = Stack->Parameters.SetFile.FileObject;
+  NewFCB = NewFileObject->FsContext;
+
+  if (FsRtlAreNamesEqual(&(FCB->LongNameU), &(NewFCB->LongNameU), FALSE, NULL))
+  {
+    return STATUS_SUCCESS;
+  }
+
+  return STATUS_NOT_IMPLEMENTED;
+}
+
 NTSTATUS VfatQueryInformation(PVFAT_IRP_CONTEXT IrpContext)
 /*
  * FUNCTION: Retrieve the specified file information
@@ -925,7 +952,7 @@
 				   SystemBuffer);
       break;
     case FileRenameInformation:
-      RC = STATUS_NOT_IMPLEMENTED;
+      RC = VfatSetRenameInformation(IrpContext);
       break;
     default:
       RC = STATUS_NOT_SUPPORTED;



More information about the Ros-diffs mailing list