summaryrefslogtreecommitdiffstats
path: root/balkan/rw.c
blob: bd72784590b279dea5e2a4aaecf681abac752ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "balkan.h"
#include "dos.h"

int balkanReadTable(int fd, struct partitionTable * table) {
    int ret;

    /* Try sun labels first: they contain
       both magic (tho 16bit) and checksum.  */
    ret = sunpReadTable(fd, table);
    if (ret != BALKAN_ERROR_BADMAGIC)
	return ret;
	
    return dospReadTable(fd, table);    
}