mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2025-10-30 05:18:31 -05:00
show swap partitions as unused
This commit is contained in:
@@ -2132,7 +2132,6 @@ Ext2QueryVolumeFS(
|
|||||||
union swap_header* swap = NULL;
|
union swap_header* swap = NULL;
|
||||||
PUCHAR buffer = NULL;
|
PUCHAR buffer = NULL;
|
||||||
|
|
||||||
|
|
||||||
NT::NTSTATUS status;
|
NT::NTSTATUS status;
|
||||||
|
|
||||||
buffer = (PUCHAR)malloc(PAGE_SIZE);
|
buffer = (PUCHAR)malloc(PAGE_SIZE);
|
||||||
@@ -2157,7 +2156,6 @@ Ext2QueryVolumeFS(
|
|||||||
volume->FsaInfo.FileSystemName[0] = (WCHAR)'E';
|
volume->FsaInfo.FileSystemName[0] = (WCHAR)'E';
|
||||||
volume->FsaInfo.FileSystemName[1] = (WCHAR)'X';
|
volume->FsaInfo.FileSystemName[1] = (WCHAR)'X';
|
||||||
volume->FsaInfo.FileSystemName[2] = (WCHAR)'T';
|
volume->FsaInfo.FileSystemName[2] = (WCHAR)'T';
|
||||||
volume->FsaInfo.FileSystemName[4] = 0;
|
|
||||||
|
|
||||||
if (sb->s_feature_incompat & EXT4_FEATURE_INCOMPAT_EXTENTS) {
|
if (sb->s_feature_incompat & EXT4_FEATURE_INCOMPAT_EXTENTS) {
|
||||||
volume->FsaInfo.FileSystemName[3] = (WCHAR)'4';
|
volume->FsaInfo.FileSystemName[3] = (WCHAR)'4';
|
||||||
@@ -2188,7 +2186,9 @@ Ext2QueryVolumeFS(
|
|||||||
volume->FsaInfo.FileSystemName[1] = (WCHAR)'W';
|
volume->FsaInfo.FileSystemName[1] = (WCHAR)'W';
|
||||||
volume->FsaInfo.FileSystemName[2] = (WCHAR)'A';
|
volume->FsaInfo.FileSystemName[2] = (WCHAR)'A';
|
||||||
volume->FsaInfo.FileSystemName[3] = (WCHAR)'P';
|
volume->FsaInfo.FileSystemName[3] = (WCHAR)'P';
|
||||||
volume->FsaInfo.FileSystemName[4] = 0;
|
// Show swap partitions as unused.
|
||||||
|
volume->FssInfo.AvailableAllocationUnits = volume->FssInfo.TotalAllocationUnits;
|
||||||
|
volume->bRecognized = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
errorout:
|
errorout:
|
||||||
|
|||||||
Reference in New Issue
Block a user