Subject: bug#9157: [PATCH] dd: sparse conv flag

From: Roman Rybalko <[email-masked]>
Date: Tue, 28 Feb 2012 22:00:23 +0400

On 28.02.2012 21:01, Pádraig Brady wrote:
> Ok the attached should be pretty much complete.
> It disables conv=sparse when used with
> conv=notrunc or oflag=append.
> Comments appreciated.
About "sparse" stuff everything's ok, imo.
Actually I can live with truncated files due to absence of last write,
but for user it's really convenient to have output file with matched
size :) so it worths having additional static var with some logic around.

I have another idea about INPUT_BLOCK_SLOP/OUTPUT_BLOCK_SLOP: what about
not hardcoding them but getting them out of the filesystem, or out of
ibs/obs specified by user - that last would be the best case. But that's
probably not for this feature request.

-- 
WBR,
Roman Rybalko