Displaying 3 results from an estimated 3 matches for "5f31155".
Did you mean:
51155
2013 Oct 23
1
Re: [PATCH 1/2] Preallocate output file
...rather operations that need to be done
> while writing I think.
>
> For ref I made the above call after writing various chunks to disk in:
> https://github.com/pixelb/dvd-vr/blob/master/dvd-vr.c#L322
> and also dd:
> http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=5f31155
This does explain why the posix_fadvise call has no effect.
How about POSIX_FADV_RANDOM? I would have thought that should be done
before the write operations ...
> BTW dd has this as an option, and dvd-vr is a specialized tool
> often handling large files, so in both these cases FADV_DONT...
2013 Oct 22
2
[PATCH 1/2] Preallocate output file
---
pxzcat.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pxzcat.c b/pxzcat.c
index 4ab8689..9bcdc36 100644
--- a/pxzcat.c
+++ b/pxzcat.c
@@ -29,10 +29,11 @@
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+#define _GNU_SOURCE
#include <config.h>
2013 Oct 23
0
Re: [PATCH 1/2] Preallocate output file
...et a flag like this.
These are rather operations that need to be done
while writing I think.
For ref I made the above call after writing various chunks to disk in:
https://github.com/pixelb/dvd-vr/blob/master/dvd-vr.c#L322
and also dd:
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=5f31155
BTW dd has this as an option, and dvd-vr is a specialized tool
often handling large files, so in both these cases FADV_DONTNEED
is appropriate. If pxzcat will always be used for virt images then
that does seem appropriate there too, though if used for general
files then probably not.
cheers,
Pádr...