I agree that this sounds like a good idea but there are some complications. 
What if we get an error while half-way through a block, because the disk is
failing but not wholly failed?  Do we skip a whole block, to half-way
through the next block, or only skip to the start of the next block?  How do
we know where the next block is?  Can we safely assume that all files on all
filesystems always start at the beginning of a block?

So perhaps if -E took an argument, we would explicitly state in the
documentation that on error, PV would skip to the start of the next block,
and would assume that the file starts at the beginning of a block.  So with
"-E 4k", an error at 2k would skip to 4k, an error at 4k would skip to 8k,
and so on.

Does this seem reasonable?



On Tue, Oct 04, 2016 at 09:10:36PM -0400, Anthony DeRobertis wrote:
> Package: pv
> Version: 1.6.0-1
> Severity: wishlist
> 
[...]
> So really it seems like -E ought to just skip 4k at once.
> 
> Or at least there ought to be an option to specify the skip size. I'd
> suggest -E should take an optional argument, the skip size, and default
> to 4k.

-- 
Andrew Wood

Reply via email to