ptable_getsize
if (ptable_getsize(od->table, &mediasize) != 0) {
int ptable_getsize(const struct ptable *table, uint64_t *sizep);