r = blockdev_size(f, &bytes);
if (r) {
td_verror(td, r, "blockdev_size");
- printf("fd is %d\n", f->fd);
goto err;
}
}
}
+ if (td->o.size_percent)
+ total_size = (total_size * td->o.size_percent) / 100;
+
if (!td->o.size || td->o.size > total_size)
td->o.size = total_size;