[DISKPART] Implements part of the FILESYSTEMS command

This commit is contained in:
Eric Kohl 2022-06-05 18:23:08 +02:00
parent d3d5eae19e
commit be88af54e7
13 changed files with 454 additions and 21 deletions

View file

@ -8,7 +8,30 @@
#include "diskpart.h"
BOOL filesystems_main(INT argc, LPWSTR *argv)
#define NDEBUG
#include <debug.h>
BOOL
filesystems_main(
_In_ INT argc,
_In_ PWSTR *argv)
{
if (CurrentVolume == NULL)
{
ConResPuts(StdOut, IDS_SELECT_NO_VOLUME);
return TRUE;
}
ConPuts(StdOut, L"\n");
ConResPuts(StdOut, IDS_FILESYSTEMS_CURRENT);
ConPuts(StdOut, L"\n");
ConResPrintf(StdOut, IDS_FILESYSTEMS_TYPE, (CurrentVolume->pszFilesystem == NULL) ? L"RAW" : CurrentVolume->pszFilesystem);
ConResPrintf(StdOut, IDS_FILESYSTEMS_CLUSTERSIZE);
ConPuts(StdOut, L"\n");
ConResPuts(StdOut, IDS_FILESYSTEMS_FORMATTING);
ConPuts(StdOut, L"\n");
return TRUE;
}