FAQ entry for loopback mounting

Ralph Siemsen ralphs at netwinder.org
Wed Apr 5 13:36:56 EDT 2006


David Woodhouse wrote:

> We _are_ being lenient. If you say 'k' or 'M' instead of 'Ki' or 'Mi'
> then you are going to get the powers of ten which you asked for... which
> is almost certainly _not_ what you wanted. Giving you powers of two is
> not an option. So it's best not to accept it at all.

No, if you give it "k" only, then it multiples by 1024, but because 
there is no "i", it does not advance *endp, and then parse_num() returns 
-EINVAL because it sees trailing garbage.  So just "k" is not accepted 
at all, which is not "leniant" in my books.

-R




More information about the linux-mtd mailing list