Author: pschweitzer
Date: Sun Oct 18 16:09:11 2015
New Revision: 69602
URL:
http://svn.reactos.org/svn/reactos?rev=69602&view=rev
Log:
[NTOSKRNL]
Don't keep spining forever in CcRosFlushDirtyPages() when flushing a dirty VACB fails
on a RO volume.
This can be triggered with extX volumes and can prevent shutdown from succeeding
Modified:
trunk/reactos/ntoskrnl/cc/view.c
Modified: trunk/reactos/ntoskrnl/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=696…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] Sun Oct 18 16:09:11 2015
@@ -235,7 +235,8 @@
KeAcquireGuardedMutex(&ViewLock);
CcRosVacbDecRefCount(current);
- if (!NT_SUCCESS(Status) && (Status != STATUS_END_OF_FILE))
+ if (!NT_SUCCESS(Status) && (Status != STATUS_END_OF_FILE) &&
+ (Status != STATUS_MEDIA_WRITE_PROTECTED))
{
DPRINT1("CC: Failed to flush VACB.\n");
}