]> git.ipfire.org Git - thirdparty/grub.git/commit
Correct befs block counting logic.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 28 Oct 2011 13:59:47 +0000 (15:59 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 28 Oct 2011 13:59:47 +0000 (15:59 +0200)
commitad03fe768e8b47cb51612dfa3545fd1a892bbe7f
treee3a894380343aac81c56ceeb71d0637ac42e2f2e
parent6563f63dfd8eb3b3e5db20b774ca3fadb3aac4b5
Correct befs block counting logic.

* grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
(GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
(GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
(grub_afs_read_inode): Use block_shift.
(RANGE_SHIFT): New definition.
(grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
unexpected conditions, use shifts and appropriate types.
(GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
ChangeLog
grub-core/fs/afs.c