[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sparse file processing improvements for dd
From: |
Pádraig Brady |
Subject: |
sparse file processing improvements for dd |
Date: |
Tue, 19 May 2015 22:20:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 08/10/14 15:55, Pádraig Brady wrote:
> Subject: [PATCH 2/4] cp: avoid speculative preallocation with --sparse=always
>
> With --sparse=always use fallocate(...PUNCH_HOLE...) to
> avoid any permanent allocation due to speculative
> preallocation employed by file systems such as XFS.
For the record, I was wondering if we should apply the same punch_hole()
processing to dd conv=sparse ? I'm 60:40 against as the implementation
is documented to skip existing data in the output for NULs in the input.
If one really cares about minimizing allocation after a dd copy,
one can call `fallocate --dig-holes`, albeit with repeated processing
of the non holes.
cheers,
Pádraig.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sparse file processing improvements for dd,
Pádraig Brady <=