Nik Markovic wrote:
> Li Zefan wrote:
>>
>> Nik Markovic wrote:
>>> Hi All,
>>>
>>> I have been encountering consistent btrfs filesystem crashes when
>>> using cp –reflink=always on a large file and modifying it. I believe
>>> that the test file needs to be fairly large as I was not able to
>>> reproduce with smaller files. The filesystem size is 45GB and file
>>> size is 10GB.
>>>
>>
>> It should be fixed in 3.1 by this commit:
>>
>> commit b6f3409b2197e8fcedb43e6600e37b7cfbe0715b
>> Author: Sage Weil <s...@newdream.net>
>> Date:   Tue Sep 20 14:48:51 2011 -0400
>>
>>    Btrfs: reserve sufficient space for ioctl clone
>>
>>    Fix a crash/BUG_ON in the clone ioctl due to insufficient reservation. We
>>    need to reserve space for:
>>
>>     - adjusting the old extent (possibly splitting it)
>>     - adding the new extent
>>     - updating the inode
> Thanks Li,
> 
> You are probably right. I upgraded to 3.2-rc5 today and was not able
> to reproduce with 100k iterations.
> Do you think that applying the same patch to 3.0 should fix this issue in 3.0?
> 

yes, it should be fine.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to