mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers
This commit is contained in:
parent
62f791886e
commit
022f63846a
13 changed files with 273 additions and 272 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue