aboutsummaryrefslogtreecommitdiffstats
path: root/src/show.c
blob: 6297c859cca71f4148cc4eef5c8bd9b7819c32dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "project.h"



void show(DISK *d)
{
MBR *m;
GPT_header *h;
GPT_entry *e;

uint8_t buf[512];

disk_read(d,buf,0,1);
m=(MBR *)buf;
mbr_show(m);

disk_read(d,buf,1,1);
h=(GPT_header *)buf;
header_show(d,h);

disk_read(d,buf,disk_lbas(d)-1,1);
h=(GPT_header *)buf;
header_show(d,h);

}