bug-coreutils
[Top][All Lists]
Advanced

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

Re: [Wishlist] dd: per-block skip data option


From: Paul Eggert
Subject: Re: [Wishlist] dd: per-block skip data option
Date: Mon, 31 Oct 2005 12:52:26 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Theodoros V. Kalamatianos" <address@hidden> writes:

> If the last output block is not obs-sized I think it is logical to
> asume that no seeking/padding should happen afterwards. But I am not
> sure what should happen if the block is obs-sized (i.e. a full
> output block).

For lack of a better alternative I'd say that if the last output block
is partial, it shouldn't be appended to with obseek=,N; but if it is a
full block, it should be appended to.  Or am I missing the point?

> To seek/pad the output lseek is not enough - you have to actually
> write something for the file to expand to the new size.

Or you can call ftruncate (for regular files anyway).

This is related to the XCU ERN 64 issue I mentioned previously.




reply via email to

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