mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[DIKPART]
Implement the RESCAN command. svn path=/trunk/; revision=68569
This commit is contained in:
parent
937fab0c67
commit
403459d8f4
8 changed files with 56 additions and 11 deletions
|
@ -43,10 +43,17 @@ BEGIN
|
||||||
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
||||||
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
||||||
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
||||||
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk for listing partitions.\nPlease select a disk and try again.\n\n"
|
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk to list partitions.\nPlease select a disk and try again.\n\n"
|
||||||
IDS_LIST_VOLUME_HEAD " Volume ### Ltr Label\n"
|
IDS_LIST_VOLUME_HEAD " Volume ### Ltr Label\n"
|
||||||
END
|
END
|
||||||
|
|
||||||
|
/* RESCAN command string */
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_RESCAN_START "\nPlease wait while DiskPart scans your configuration...\n"
|
||||||
|
IDS_RESCAN_END "\nDiskPart has finished scanning your configuration.\n\n"
|
||||||
|
END
|
||||||
|
|
||||||
/* Select command strings */
|
/* Select command strings */
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
|
@ -44,11 +44,18 @@ BEGIN
|
||||||
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
||||||
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
||||||
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
||||||
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk for listing partitions.\nPlease select a disk and try again.\n\n"
|
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk to list partitions.\nPlease select a disk and try again.\n\n"
|
||||||
IDS_LIST_VOLUME_HEAD "Volum ###\tLtr\tEtichetă\n"
|
IDS_LIST_VOLUME_HEAD "Volum ###\tLtr\tEtichetă\n"
|
||||||
END
|
END
|
||||||
|
|
||||||
/* Select command strings */
|
/* RESCAN command string */
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_RESCAN_START "\nPlease wait while DiskPart scans your configuration...\n"
|
||||||
|
IDS_RESCAN_END "\nDiskPart has finished scanning your configuration.\n\n"
|
||||||
|
END
|
||||||
|
|
||||||
|
/* SELECT command strings */
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
||||||
|
|
|
@ -45,11 +45,18 @@ BEGIN
|
||||||
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
||||||
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
||||||
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
||||||
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk for listing partitions.\nPlease select a disk and try again.\n\n"
|
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk to list partitions.\nPlease select a disk and try again.\n\n"
|
||||||
IDS_LIST_VOLUME_HEAD "Том ###\tИмя\tМетка\n"
|
IDS_LIST_VOLUME_HEAD "Том ###\tИмя\tМетка\n"
|
||||||
END
|
END
|
||||||
|
|
||||||
/* Select command strings */
|
/* RESCAN command string */
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_RESCAN_START "\nPlease wait while DiskPart scans your configuration...\n"
|
||||||
|
IDS_RESCAN_END "\nDiskPart has finished scanning your configuration.\n\n"
|
||||||
|
END
|
||||||
|
|
||||||
|
/* SELECT command strings */
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
||||||
|
|
|
@ -47,11 +47,18 @@ BEGIN
|
||||||
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
||||||
IDS_LIST_PARTITION_LINE "%c ------------- ---------------- ------- -------\n"
|
IDS_LIST_PARTITION_LINE "%c ------------- ---------------- ------- -------\n"
|
||||||
IDS_LIST_PARTITION_FORMAT " Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
IDS_LIST_PARTITION_FORMAT " Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
||||||
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk for listing partitions.\nPlease select a disk and try again.\n\n"
|
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk to list partitions.\nPlease select a disk and try again.\n\n"
|
||||||
IDS_LIST_VOLUME_HEAD "Volume ###\tLtr\tLabel\n"
|
IDS_LIST_VOLUME_HEAD "Volume ###\tLtr\tLabel\n"
|
||||||
END
|
END
|
||||||
|
|
||||||
/* Select command strings */
|
/* RESCAN command string */
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_RESCAN_START "\nPlease wait while DiskPart scans your configuration...\n"
|
||||||
|
IDS_RESCAN_END "\nDiskPart has finished scanning your configuration.\n\n"
|
||||||
|
END
|
||||||
|
|
||||||
|
/* SELECT command strings */
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
||||||
|
|
|
@ -45,11 +45,18 @@ BEGIN
|
||||||
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
IDS_LIST_PARTITION_HEAD "\n Partition Type Size Offset\n"
|
||||||
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
IDS_LIST_PARTITION_LINE " ------------- ---------------- ------- -------\n"
|
||||||
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
IDS_LIST_PARTITION_FORMAT "%c Partition %2lu %-16s %4I64u %-2s %4I64u %-2s\n"
|
||||||
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk for listing partitions.\nPlease select a disk and try again.\n\n"
|
IDS_LIST_PARTITION_NO_DISK "\nThere is no disk to list partitions.\nPlease select a disk and try again.\n\n"
|
||||||
IDS_LIST_VOLUME_HEAD "Birim ###\tHarf\tEtiket\n"
|
IDS_LIST_VOLUME_HEAD "Birim ###\tHarf\tEtiket\n"
|
||||||
END
|
END
|
||||||
|
|
||||||
/* Select command strings */
|
/* RESCAN command string */
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_RESCAN_START "\nPlease wait while DiskPart scans your configuration...\n"
|
||||||
|
IDS_RESCAN_END "\nDiskPart has finished scanning your configuration.\n\n"
|
||||||
|
END
|
||||||
|
|
||||||
|
/* SELECT command strings */
|
||||||
STRINGTABLE
|
STRINGTABLE
|
||||||
BEGIN
|
BEGIN
|
||||||
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
IDS_SELECT_NO_DISK "\nThere is no disk currently selected.\nPlease select a disk and try again.\n\n"
|
||||||
|
|
|
@ -1137,6 +1137,9 @@ DestroyPartitionList(VOID)
|
||||||
PPARTENTRY PartEntry;
|
PPARTENTRY PartEntry;
|
||||||
PLIST_ENTRY Entry;
|
PLIST_ENTRY Entry;
|
||||||
|
|
||||||
|
CurrentDisk = NULL;
|
||||||
|
CurrentPartition = NULL;
|
||||||
|
|
||||||
/* Release disk and partition info */
|
/* Release disk and partition info */
|
||||||
while (!IsListEmpty(&DiskListHead))
|
while (!IsListEmpty(&DiskListHead))
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
* PROJECT: ReactOS DiskPart
|
* PROJECT: ReactOS DiskPart
|
||||||
* LICENSE: GPL - See COPYING in the top level directory
|
* LICENSE: GPL - See COPYING in the top level directory
|
||||||
* FILE: base/system/diskpart/rescan.c
|
* FILE: base/system/diskpart/rescan.c
|
||||||
* PURPOSE: Manages all the partitions of the OS in
|
* PURPOSE: Manages all the partitions of the OS in an interactive way
|
||||||
* an interactive way
|
|
||||||
* PROGRAMMERS: Lee Schroeder
|
* PROGRAMMERS: Lee Schroeder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -11,5 +10,10 @@
|
||||||
|
|
||||||
BOOL rescan_main(INT argc, LPWSTR *argv)
|
BOOL rescan_main(INT argc, LPWSTR *argv)
|
||||||
{
|
{
|
||||||
|
PrintResourceString(IDS_RESCAN_START);
|
||||||
|
DestroyPartitionList();
|
||||||
|
CreatePartitionList();
|
||||||
|
PrintResourceString(IDS_RESCAN_END);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,9 @@
|
||||||
#define IDS_LIST_PARTITION_NO_DISK 3306
|
#define IDS_LIST_PARTITION_NO_DISK 3306
|
||||||
#define IDS_LIST_VOLUME_HEAD 3307
|
#define IDS_LIST_VOLUME_HEAD 3307
|
||||||
|
|
||||||
|
#define IDS_RESCAN_START 4100
|
||||||
|
#define IDS_RESCAN_END 4101
|
||||||
|
|
||||||
#define IDS_SELECT_NO_DISK 4400
|
#define IDS_SELECT_NO_DISK 4400
|
||||||
#define IDS_SELECT_DISK 4401
|
#define IDS_SELECT_DISK 4401
|
||||||
#define IDS_SELECT_DISK_INVALID 4402
|
#define IDS_SELECT_DISK_INVALID 4402
|
||||||
|
|
Loading…
Reference in a new issue