Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers

This commit is contained in:
Andrea Mazzoleni 2026-06-03 23:06:27 +02:00
parent 76998613da
commit bbd3c23cd2
13 changed files with 273 additions and 272 deletions

View file

@ -1079,7 +1079,7 @@ int snapraid_main(int argc, char* argv[])
}
break;
case 'S' :
blockstart = strtoul(optarg, &e, 0);
blockstart = strtoull(optarg, &e, 0);
if (e == optarg || *e) {
/* LCOV_EXCL_START */
log_fatal(EUSER, "Invalid start position '%s'\n", optarg);
@ -1088,7 +1088,7 @@ int snapraid_main(int argc, char* argv[])
}
break;
case 'B' :
blockcount = strtoul(optarg, &e, 0);
blockcount = strtoull(optarg, &e, 0);
if (e == optarg || *e) {
/* LCOV_EXCL_START */
log_fatal(EUSER, "Invalid count number '%s'\n", optarg);