if (!cli->rgcount)
cfg->rgcount += XFS_RESERVED_ZONES;
if (cfg->rgcount > max_zones) {
- cfg->rgcount = max_zones;
fprintf(stderr,
-_("Warning: not enough zones for backing requested rt size due to\n"
+_("Warning: not enough zones (%lu/%u) for backing requested rt size due to\n"
"over-provisioning needs, writable size will be less than %s\n"),
- cli->rtsize);
+ cfg->rgcount, max_zones, cli->rtsize);
+ cfg->rgcount = max_zones;
}
new_rtblocks = (cfg->rgcount * cfg->rgsize);
slack = (new_rtblocks - cfg->rtblocks) % cfg->rgsize;