[stgt] [PATCHes] Updated patches for thin-provisioning support
ronnie sahlberg
ronniesahlberg at gmail.com
Sat Apr 14 23:15:10 CEST 2012
Fair enough.
Please find attached an update to the UNMAP patch that only tries to
punch a hole for the hole region
and ignores the underlying block boundaries.
It will rely on the underlying filesystem to zero out any unaligned regions.
You still need the "TGTIMG patch to be applied first.
After this patch, I also have patches to add WRITE_SAME10/16 that can
also be used to punch holes in LUNs.
regards
ronnie sahlberg
On Sat, Apr 14, 2012 at 9:00 PM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> On Sat, 14 Apr 2012 19:24:10 +1000
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>
>> On Sat, Apr 14, 2012 at 6:24 PM, FUJITA Tomonori
>> <fujita.tomonori at lab.ntt.co.jp> wrote:
>>> On Sun, 1 Apr 2012 08:26:27 +1000
>>> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>>>
>> ...
>>>> + /* we can only punch holes aligned for full blocks.
>>>> + * if not aligned to a block boundary we overwrite
>>>> + * the first partial block with zero
>>>> + */
>>>
>>> Where this limit comes from? seems that ext4 can handle the unaligned
>>> request.
>>>
>>
>> BTRFS on linux 3.2
>>
>> You cant punch holes smaller than the fs blocksize anyway so it is
>> either replaced by "write all zero"
>> in tgtd or relying on the underlying filesystem doing it for you
>> instead of failing.
>
> I don't think that the current inconsistent situation is good (some
> file systems do zero-ing and some don't). I prefer file systems to
> handle this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-SBC-UNMAP-Add-support-for-thin-provisioning-and-the-.patch.gz
Type: application/x-gzip
Size: 3857 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120415/083a672b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-SBC-UNMAP-Add-support-for-thin-provisioning-and-the-.patch
Type: application/octet-stream
Size: 10700 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120415/083a672b/attachment-0002.obj>
More information about the stgt
mailing list