Closed solracsf closed 2 years ago
What does this program output?
#include <stdint.h>
#include <stdio.h>
int
main(int ac, char **av)
{
printf("%lu\n", (unsigned long)sizeof(uintmax_t));
return 0;
}
You can compile and run it like this:
$ cc -o xx xx.c && ./xx
If it prints 8
then the problem is that the largest integer C type is not big enough to hold that many blocks.
s3backer could be more helpful with the error message in this situation of course.
8 it is
# cc -o xx xx.c && ./xx
8
Better error message implemented in 4c7596f4.
Accordingly to
man
page:but when set as:
--size=1y (or 1Y)
it outputs
s3backer: invalid file size `1y'