From: Ralph Siemsen <ralphs@netwinder.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: FAQ entry for loopback mounting
Date: Wed, 05 Apr 2006 13:36:56 -0400 [thread overview]
Message-ID: <44340038.3000602@netwinder.org> (raw)
In-Reply-To: <1144258058.6227.90.camel@pmac.infradead.org>
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
next prev parent reply other threads:[~2006-04-05 17:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 16:00 FAQ entry for loopback mounting Ralph Siemsen
2006-04-05 16:27 ` David Woodhouse
[not found] ` <4433F9FE.7020501@rossvideo.com>
2006-04-05 17:27 ` David Woodhouse
2006-04-05 17:36 ` Ralph Siemsen [this message]
2006-04-05 19:05 ` Jörn Engel
2006-04-06 10:33 ` David Vrabel
2006-04-06 12:04 ` Ralph Siemsen
2006-04-06 12:15 ` David Woodhouse
2006-04-06 12:39 ` David Vrabel
2006-04-06 13:10 ` Ralph Siemsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44340038.3000602@netwinder.org \
--to=ralphs@netwinder.org \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox