bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] dd: do not unnecesarilly allocate memory for input block siz


From: Ondřej Vašík
Subject: Re: [PATCH] dd: do not unnecesarilly allocate memory for input block size, when not needed
Date: Fri, 22 May 2009 15:18:50 +0200

Pádraig Brady wrote:
> So that would not run skip(STDOUT_FILENO,...) if count==0.
> Would this break existing scripts that for example used
> this command to position a non seekable device?
> 
>   dd count=0 of=/dev/tape seek=1234

Thanks for objection, you are right, my patch seems to be not correct
way as it doesn't run that part and could break something. However - for
many cases (when file_size && offset < OFF_T_MAX and file seekable)
buffer allocation is not required in skip(), so it could be handled
somehow for those cases even without buffer allocation...

Greetings,
         Ondřej

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]