commit | 02808f7d9aabc7df6121d767fcebfb6e8aa32b56 | [log] [tgz] |
---|---|---|
author | Kazuya Mio <k-mio@sx.jp.nec.com> | Mon Dec 13 09:59:06 2010 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Dec 13 09:59:06 2010 -0500 |
tree | 8f8243f45280135d140866c862ec2e64f0369058 | |
parent | 94d26c267d30a8548e2a46e6fe9eaacdb6998596 [diff] |
e4defrag: fix file blocks calculation e4defrag uses st_blocks (struct stat) to calculate file blocks. However, st_blocks also has meta data blocks in addition to file blocks. So, we calculate file blocks by sum of the extent length. Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>