aboutsummaryrefslogtreecommitdiffstats
path: root/src/show.c
diff options
context:
space:
mode:
authorroot <root>2007-09-09 22:29:50 +0000
committerroot <root>2007-09-09 22:29:50 +0000
commita501062f338339d1dbafebc55841cbdc570a27b6 (patch)
tree4f314db4049d665fc3a0acacbbbec4ee803159e6 /src/show.c
parentb013532b3061cc661ee9d0b141efbc86cda5c320 (diff)
downloadgpt-a501062f338339d1dbafebc55841cbdc570a27b6.tar.gz
gpt-a501062f338339d1dbafebc55841cbdc570a27b6.tar.bz2
gpt-a501062f338339d1dbafebc55841cbdc570a27b6.zip
*** empty log message ***
Diffstat (limited to 'src/show.c')
-rw-r--r--src/show.c31
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);
+
+}
+
+
+
+
+
+