[FASTFAT]

s/DeviceObject/DeviceExt/g

svn path=/trunk/; revision=65032
This commit is contained in:
Pierre Schweitzer 2014-10-26 20:23:07 +00:00
parent c9e616ea2b
commit 4a49b030de

View file

@ -455,7 +455,7 @@ NTSTATUS
VfatSetRenameInformation( VfatSetRenameInformation(
PFILE_OBJECT FileObject, PFILE_OBJECT FileObject,
PVFATFCB FCB, PVFATFCB FCB,
PDEVICE_EXTENSION DeviceObject, PDEVICE_EXTENSION DeviceExt,
PFILE_RENAME_INFORMATION RenameInfo, PFILE_RENAME_INFORMATION RenameInfo,
PFILE_OBJECT TargetFileObject) PFILE_OBJECT TargetFileObject)
{ {
@ -474,7 +474,7 @@ VfatSetRenameInformation(
HANDLE TargetHandle; HANDLE TargetHandle;
BOOLEAN DeletedTarget; BOOLEAN DeletedTarget;
DPRINT("VfatSetRenameInfo(%p, %p, %p, %p, %p)\n", FileObject, FCB, DeviceObject, RenameInfo, TargetFileObject); DPRINT("VfatSetRenameInfo(%p, %p, %p, %p, %p)\n", FileObject, FCB, DeviceExt, RenameInfo, TargetFileObject);
/* Disallow renaming root */ /* Disallow renaming root */
if (vfatFCBIsRoot(FCB)) if (vfatFCBIsRoot(FCB))
@ -691,8 +691,8 @@ VfatSetRenameInformation(
if (FsRtlAreNamesEqual(&SourceFile, &NewFile, TRUE, NULL)) if (FsRtlAreNamesEqual(&SourceFile, &NewFile, TRUE, NULL))
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -701,11 +701,11 @@ VfatSetRenameInformation(
FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME),
FILE_ACTION_RENAMED_OLD_NAME, FILE_ACTION_RENAMED_OLD_NAME,
NULL); NULL);
Status = vfatRenameEntry(DeviceObject, FCB, &NewFile, TRUE); Status = vfatRenameEntry(DeviceExt, FCB, &NewFile, TRUE);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -720,8 +720,8 @@ VfatSetRenameInformation(
{ {
/* Try to find target */ /* Try to find target */
ParentFCB = FCB->parentFcb; ParentFCB = FCB->parentFcb;
vfatGrabFCB(DeviceObject, ParentFCB); vfatGrabFCB(DeviceExt, ParentFCB);
Status = vfatPrepareTargetForRename(DeviceObject, Status = vfatPrepareTargetForRename(DeviceExt,
&ParentFCB, &ParentFCB,
&NewFile, &NewFile,
RenameInfo->ReplaceIfExists, RenameInfo->ReplaceIfExists,
@ -732,8 +732,8 @@ VfatSetRenameInformation(
goto Cleanup; goto Cleanup;
} }
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -742,13 +742,13 @@ VfatSetRenameInformation(
FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME),
(DeletedTarget ? FILE_ACTION_REMOVED : FILE_ACTION_RENAMED_OLD_NAME), (DeletedTarget ? FILE_ACTION_REMOVED : FILE_ACTION_RENAMED_OLD_NAME),
NULL); NULL);
Status = vfatRenameEntry(DeviceObject, FCB, &NewFile, FALSE); Status = vfatRenameEntry(DeviceExt, FCB, &NewFile, FALSE);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
{ {
if (DeletedTarget) if (DeletedTarget)
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -760,8 +760,8 @@ VfatSetRenameInformation(
} }
else else
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -778,7 +778,7 @@ VfatSetRenameInformation(
{ {
/* Try to find target */ /* Try to find target */
ParentFCB = NULL; ParentFCB = NULL;
Status = vfatPrepareTargetForRename(DeviceObject, Status = vfatPrepareTargetForRename(DeviceExt,
&ParentFCB, &ParentFCB,
&NewName, &NewName,
RenameInfo->ReplaceIfExists, RenameInfo->ReplaceIfExists,
@ -789,8 +789,8 @@ VfatSetRenameInformation(
goto Cleanup; goto Cleanup;
} }
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -799,13 +799,13 @@ VfatSetRenameInformation(
FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME),
FILE_ACTION_REMOVED, FILE_ACTION_REMOVED,
NULL); NULL);
Status = VfatMoveEntry(DeviceObject, FCB, &NewFile, ParentFCB); Status = VfatMoveEntry(DeviceExt, FCB, &NewFile, ParentFCB);
if (NT_SUCCESS(Status)) if (NT_SUCCESS(Status))
{ {
if (DeletedTarget) if (DeletedTarget)
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -817,8 +817,8 @@ VfatSetRenameInformation(
} }
else else
{ {
FsRtlNotifyFullReportChange(DeviceObject->NotifySync, FsRtlNotifyFullReportChange(DeviceExt->NotifySync,
&(DeviceObject->NotifyList), &(DeviceExt->NotifyList),
(PSTRING)&FCB->PathNameU, (PSTRING)&FCB->PathNameU,
FCB->PathNameU.Length - FCB->LongNameU.Length, FCB->PathNameU.Length - FCB->LongNameU.Length,
NULL, NULL,
@ -832,7 +832,7 @@ VfatSetRenameInformation(
} }
Cleanup: Cleanup:
if (ParentFCB != NULL) vfatReleaseFCB(DeviceObject, ParentFCB); if (ParentFCB != NULL) vfatReleaseFCB(DeviceExt, ParentFCB);
if (NewName.Buffer != NULL) ExFreePoolWithTag(NewName.Buffer, TAG_VFAT); if (NewName.Buffer != NULL) ExFreePoolWithTag(NewName.Buffer, TAG_VFAT);
if (RenameInfo->RootDirectory != NULL) ObDereferenceObject(RootFileObject); if (RenameInfo->RootDirectory != NULL) ObDereferenceObject(RootFileObject);