]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libe2p: teach parse_num_blocks2() to return bytes if log_block_size < 0
authorTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jan 2013 00:01:25 +0000 (19:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jan 2013 19:06:32 +0000 (14:06 -0500)
commit35d886b67947dcb802da09306b6a85f1e9f99865
tree0b7813eb3f62240674bef131a0046c7ec0e76ac9
parent2a3b1c6ea29db5d5dfe4602d0b0adfda88068de6
libe2p: teach parse_num_blocks2() to return bytes if log_block_size < 0

Previously the behavior of parse_num_block2 was undefined if
log_block_size was less than zero.  It will now return a number in
units of bytes.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
lib/e2p/parse_num.c