Fix per-file block index overflow beyond 32 bits

This commit is contained in:
Andrea Mazzoleni 2026-08-14 00:17:58 +02:00
parent 5be2d16904
commit 9255157519
2 changed files with 2 additions and 2 deletions

View file

@ -330,7 +330,7 @@ int filter_existence(int filter_missing, const char* dir, const char* sub)
int filter_correctness(int filter_error, tommy_arrayblkof* infoarr, struct snapraid_disk* disk, struct snapraid_file* file)
{
unsigned i;
block_off_t i;
if (!filter_error)
return 0;

View file

@ -2275,7 +2275,7 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
uint64_t v_mtime_sec;
uint32_t v_mtime_nsec;
uint64_t v_inode;
uint32_t v_idx;
block_off_t v_idx;
struct snapraid_file* file;
struct snapraid_disk* disk;
uint32_t mapping;