Whamcloud - gitweb
filefrag: Fix a core dump on sparc32 platforms with 8k file systems
authorTheodore Ts'o <tytso@mit.edu>
Sat, 28 Nov 2009 15:28:03 +0000 (10:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 06:03:04 +0000 (01:03 -0500)
commitca92d98f0afa6e79dff672923b96cbc2274449be
tree38d870dd3e21003b7bab75a9188a03f54b290c8a
parenta49249d2e314d503f203ed1cce73fdf7f5d09ddc
filefrag: Fix a core dump on sparc32 platforms with 8k file systems

On 32-bit platforms where the file system block size is 8k or greater,
the calculation bpib*bpib*bpib* will overflow a 32-bit calculation,
leading to a divide by zero error.  Fix this.

Thanks to Mikulas Patocka for pointing this out.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/filefrag.c