| 2493 | |
| 2494 | |
| 2495 | NTSTATUS |
| 2496 | Ext2IsVolumeMounted (IN PEXT2_IRP_CONTEXT IrpContext) |
| 2497 | { |
| 2498 | PDEVICE_OBJECT DeviceObject; |
| 2499 | PEXT2_VCB Vcb = 0; |
| 2500 | NTSTATUS Status = STATUS_SUCCESS; |
| 2501 | |
| 2502 | ASSERT(IrpContext); |
| 2503 | |
| 2504 | ASSERT((IrpContext->Identifier.Type == EXT2ICX) && |
| 2505 | (IrpContext->Identifier.Size == sizeof(EXT2_IRP_CONTEXT))); |
| 2506 | |
| 2507 | |
| 2508 | DeviceObject = IrpContext->DeviceObject; |
| 2509 | |
| 2510 | Vcb = (PEXT2_VCB) DeviceObject->DeviceExtension; |
| 2511 | |
| 2512 | ASSERT(IsMounted(Vcb)); |
| 2513 | |
| 2514 | Ext2VerifyVcb (IrpContext, Vcb); |
| 2515 | |
| 2516 | Ext2CompleteIrpContext(IrpContext, Status); |
| 2517 | |
| 2518 | return Status; |
| 2519 | } |
| 2520 | |
| 2521 | |
| 2522 | NTSTATUS |
no test coverage detected