running out of space dd'ing JFFS2 image to /dev/mtdblock/0

Jörn Engel joern at wohnheim.fh-wedel.de
Mon Jan 31 12:52:33 EST 2005


On Mon, 31 January 2005 12:43:47 -0500, Robert P. J. Day wrote:
> On Mon, 31 Jan 2005, Artem B. Bityuckiy wrote:
> 
> > Nobody told about not to use KiB/MiB. It wos told about not to us K
> > and M, like 10K, 100M. Use 10KiB, 100MiB instead.
> 
> ok, i'll start poking around and come up with a patch or two.  don't
> hold your breath, it's a busy week.  the rules:
> 
>   acceptable suffixes: 	{K,k,M,m,G,g}i[Bb]    	(final "b" is optional)
                                       ^   ^
'm' and 'g' don't make sense.  'm' means Milli, instead of Mega, which
is a slight difference. :)
>   not acceptable	{K,k,M,m,G,g}		(not a single letter)
> 
> and any bare number means *exactly* that number of bytes.  agreed?
> let's leave hex and octal prefixes for round two.

If you're lazy and simply call ustrtoul (posted 3min ago), there is no
need for round two.

Jörn

-- 
Good warriors cause others to come to them and do not go to others.
-- Sun Tzu




More information about the linux-mtd mailing list