Skip to content

Commit

Permalink
recovery: fix another misspelling of "file_blocks" as "block_size"
Browse files Browse the repository at this point in the history
Together with I1efff752a223cc937c3a9e3b6a994545a5696379, this makes it
possible to install small (file_blocks < block_size) updates without
getting mysterious bus errors.

Change-Id: I49df1bcc4615d59bd00678df5765f054ccce6522
Signed-off-by: Michael Livshin <michael@cellrox.com>
  • Loading branch information
mlivshin committed Jan 27, 2015
1 parent 769d5f0 commit 1fc30d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuse_sideload.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void block_cache_enter(struct fuse_data* fd, uint32_t block)
int n;
for (n = fd->curr_block - 1; n != (int)fd->curr_block; --n) {
if (n < 0) {
n = fd->block_size - 1;
n = fd->file_blocks - 1;
}
if (fd->block_cache[n]) {
free(fd->block_cache[n]);
Expand Down

0 comments on commit 1fc30d3

Please sign in to comment.