diff options
Diffstat (limited to 'src/show.c')
-rw-r--r-- | src/show.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/show.c b/src/show.c new file mode 100644 index 0000000..6297c85 --- /dev/null +++ b/src/show.c @@ -0,0 +1,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); + +} + + + + + + |