[Gluster-devel] Small note on 'dd' and cross platform block sizes

Emmanuel Dreyfus manu at netbsd.org
Fri Jul 11 12:31:02 UTC 2014


On Fri, Jul 11, 2014 at 11:48:18AM +0100, Justin Clift wrote:
> It turns out that with the 'dd' command, the block size parameter
> (bs=) needs a bit of special treatment to work cross-platform.
> 
> Instead of using the 'M' suffix (eg 1M for 1MB), it's better to
> use the k suffix.  eg 1024k for 1MB.

For the sake of completeness:
Linux uses M for megabyte, BSD(incorrecly) uses m
Both use k for kilobyte. This is why 1024k is better than 1M or 1m.
O
-- 
Emmanuel Dreyfus
manu at netbsd.org


More information about the Gluster-devel mailing list