Whamcloud - gitweb
resize2fs (libe2p): Fix resize2fs parsing of size parameter (in sector units)
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Apr 2007 23:12:17 +0000 (19:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Apr 2007 23:12:17 +0000 (19:12 -0400)
commit51764fb1040ab671beb0336cb7b9909830947552
treee003af8f0343177b7fdc203765865902bccd9259
parent52a079315b891fbbec4a2236c0c7dd94f725d407
resize2fs (libe2p): Fix resize2fs parsing of size parameter (in sector units)

This was actually a bug in libe2p's parse_num_blocks() function.  When
handling the 's' suffix, it was ignoring the blocksize information
passed in from the caller and always interpreting the number in terms of
a 1k blocksize.

Addresses Debian Bug: #408298

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/e2p/ChangeLog
lib/e2p/parse_num.c