On Sat, 14 Apr 2012 19:24:10 +1000 ronnie sahlberg <ronniesahlberg@xxxxxxxxx> wrote: > On Sat, Apr 14, 2012 at 6:24 PM, FUJITA Tomonori > <fujita.tomonori@xxxxxxxxxxxxx> wrote: >> On Sun, 1 Apr 2012 08:26:27 +1000 >> ronnie sahlberg <ronniesahlberg@xxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html