mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[CDFS_NEW] Add a hack that allows locking a volume and thus, unmounting it. All that work, just to be able to do this...
This commit is contained in:
parent
fa1c60db50
commit
03d5be6437
2 changed files with 27 additions and 0 deletions
|
@ -225,6 +225,16 @@ Return Value:
|
|||
CdReleaseVcb( IrpContext, Vcb );
|
||||
|
||||
Status = CcWaitForCurrentLazyWriterActivity();
|
||||
#ifdef __REACTOS__
|
||||
if (Status == STATUS_NOT_IMPLEMENTED)
|
||||
{
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
// This is intentional. If we were able to get the Vcb before, just
|
||||
|
|
|
@ -895,6 +895,23 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
|
|||
CdIsVolumeDirty (
|
||||
IN PIRP_CONTEXT IrpContext,
|
||||
IN PIRP Irp
|
||||
@@ -225,6 +225,16 @@
|
||||
CdReleaseVcb( IrpContext, Vcb );
|
||||
|
||||
Status = CcWaitForCurrentLazyWriterActivity();
|
||||
+#ifdef __REACTOS__
|
||||
+ if (Status == STATUS_NOT_IMPLEMENTED)
|
||||
+ {
|
||||
+ Status = STATUS_SUCCESS;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
|
||||
+ }
|
||||
+#endif
|
||||
|
||||
//
|
||||
// This is intentional. If we were able to get the Vcb before, just
|
||||
@@ -918,7 +919,7 @@
|
||||
|
||||
if (CdIsRemount( IrpContext, Vcb, &OldVcb )) {
|
||||
|
|
Loading…
Reference in a new issue