On 2015-06-11 Simon Budig <[email protected]> wrote:
> Dear Maintainer,

> The -size option to find behaves wrongly for the 'M' units. Not sure what is
> going on there:

> simon@mezzanine:/tmp/test$ dd if=/dev/zero of=fump.bin bs=1M count=1
> 1+0 records in
> 1+0 records out
> 1048576 bytes (1.0 MB) copied, 0.00309158 s, 339 MB/s

> simon@mezzanine:/tmp/test$ dd if=/dev/zero of=bla.bin bs=512k count=1
> 1+0 records in
> 1+0 records out
> 524288 bytes (524 kB) copied, 0.00147233 s, 356 MB/s

> simon@mezzanine:/tmp/test$ find . -size 1024k
> ./fump.bin

> simon@mezzanine:/tmp/test$ find . -size 1M
> .
> ./fump.bin
> ./bla.bin

> I expect that both find invocations are equivalent and should give the
> exact same results. The manpage specifies that 'M' are units
> of 1048576 = 1024 * 1024 = 1024k bytes. It is totally unexpeced to me
> that this also returns the (smaller) bla.bin file.
[...]

Hello,

How many units sized one Megabyte each is a 512k sized file using?
a) 0
b) 1
c) something else

Obviously b. It uses some space, so it cannot be a).


OTOH:
How many units sized one Kilobyte each is a 512k sized file using?
a) exactly 512
b) something else

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to