commit | 1e003cc77d43ee01eeaae962ff6d264c9a74a363 | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Fri Sep 16 15:49:30 2011 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Sep 16 18:43:05 2011 -0400 |
tree | b057e1ca4997a3b4eb67384357eefc25be655f96 | |
parent | d5c1d82ed8812a036846267a1720faec223c0ba0 [diff] |
filefrag: Fix uninitialized "expected" value The "count" variable is only ever set if FIBMAP is used, due to the -B switch, or a fiemap failure. However, we use it unconditionally to calculate "expected" for extN files, so we can end up printing garbage. Initialize count to 0, and unless we go through the FIBMAP path, expected will be 0 as well, and in that case do not print the message. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>