getdiskinfo
static int getdiskinfo(int, const char *, const char *, int, struct bpb *);
if (getdiskinfo(fd, fname, dtype, o.hidden_sectors_set, &bpb) == -1)