mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 19:54:38 +00:00
display driver signature
This commit is contained in:
parent
87b904a4e8
commit
da8b04e3b4
@ -14,6 +14,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#include "partition.h"
|
||||
#include "libemile.h"
|
||||
|
||||
#define EMILE_MAX_DISK 16
|
||||
@ -156,9 +157,34 @@ void diskinfo(char* device)
|
||||
printf(" <invalid>\n");
|
||||
emile_map_read(map, part);
|
||||
}
|
||||
printf(" <%d: %s [%s]>\n", part + 1,
|
||||
printf(" <%d: %s [%s], ", part + 1,
|
||||
emile_map_get_partition_name(map),
|
||||
emile_map_get_partition_type(map));
|
||||
switch(emile_map_get_driver_signature(map))
|
||||
{
|
||||
case kPatchDriverSignature:
|
||||
printf("patch driver");
|
||||
break;
|
||||
case kSCSIDriverSignature:
|
||||
printf("SCSI HD driver");
|
||||
break;
|
||||
case kATADriverSignature:
|
||||
printf("ATAPI HD driver");
|
||||
break;
|
||||
case kSCSICDDriverSignature:
|
||||
printf("SCSI CDROM driver");
|
||||
break;
|
||||
case kATAPIDriverSignature:
|
||||
printf("ATAPI CDROM driver");
|
||||
break;
|
||||
case kDriveSetupHFSSignature:
|
||||
printf("Drive Setup HFS partition");
|
||||
break;
|
||||
default:
|
||||
printf("Unknown (0x%08lx)", emile_map_get_driver_signature(map));
|
||||
break;
|
||||
}
|
||||
printf(">\n");
|
||||
}
|
||||
}
|
||||
printf(" Partitions\n");
|
||||
|
Loading…
Reference in New Issue
Block a user