MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2IsDeviceValid

Function Ext2IsDeviceValid

Ext2Mgr/enumDisk.cpp:725–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725BOOL
726Ext2IsDeviceValid(CHAR *Device)
727{
728 HANDLE handle = NULL;
729 NT::NTSTATUS status;
730
731 status = Ext2Open(Device, &handle, EXT2_DESIRED_ACCESS);
732 if (!NT_SUCCESS(status)) {
733 goto errorout;
734 }
735
736errorout:
737
738 if (handle) {
739 Ext2Close(&handle);
740 }
741
742 return NT_SUCCESS(status);
743}
744
745
746BOOL

Callers

nothing calls this directly

Calls 2

Ext2OpenFunction · 0.85
Ext2CloseFunction · 0.70

Tested by

no test coverage detected