diff options
author | Joern Engel <joern@wohnheim.fh-wedel.de> | 2006-04-18 21:03:08 -0700 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-19 09:10:06 +0100 |
commit | 954c24227318c166ec1925e1229db442e1f56f51 (patch) | |
tree | 6fab80f6c186bc83dd06e697774fbb5bf83e4235 /drivers/mtd/maps/Kconfig | |
parent | 373d5e71833978fe3d91264d86857762bb92cfe2 (diff) |
mtd: improve parameter parsing for block2mtd
Expand the parameter parsing for block2mtd. It now accepts:
Ki, Mi, Gi - the official prefixes for binary multiples,
see http://physics.nist.gov/cuu/Units/binary.html,
ki - mistake on my side and analog to "k" for decimal multiples,
KiB, MiB, GiB - for people that prefer to add a "B" for byte,
kiB - combination of the above.
There were complaints about not accepting "k" for 1024. This has long
been common practice, but is known to lead to confusion. Hence the new
SI units and hence block2mtd only accepts units that cannot be confused
with decimal units. Diverging from common practice doesn't always please
people, even if the change is for the better.
Signed-off-by: Joern Engel <joern@wohnheim.fh-wedel.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/mtd/maps/Kconfig')
0 files changed, 0 insertions, 0 deletions