Re: [PATCH v3 1/5] selftests/mm: skip COW tmpfile cases when fallocate() is unsupported

Muhammad Usama Anjum <[email protected]>
Newsgroups org.kvack.linux-mm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest
Message-ID <[email protected]>
On 13/08/2026 11:20 am, David Hildenbrand (Arm) wrote:
> On 7/27/26 11:52, Muhammad Usama Anjum wrote:
>> The tmpfile-backed COW cases allocate a one-page file with fallocate()
>> before exercising private and shared mappings.  When the filesystem
>> backing tmpfile() does not implement fallocate(), setup fails with
>> EOPNOTSUPP and no COW behavior is exercised.
>>
>> This occurs when the temporary directory resides on a filesystem with
>> limited allocation support, such as NFSv3.  Reporting a failure adds
>> noise because the test prerequisite is absent rather than the COW
>> implementation being broken.
>>
>> Report EOPNOTSUPP as a skip.  Continue treating every other fallocate()
>> error as a failure so unexpected setup regressions remain visible.
>>
>> Tested-by: Sarthak Sharma <[email protected]>
>> Signed-off-by: Muhammad Usama Anjum <[email protected]>
>> ---
> 
> Worth a Fixes: ? I think so.

Thanks for reviewing!

Fixes: f8664f3c4a08 ("selftests/vm: cow: basic COW tests for non-anonymous pages")

> 
> Acked-by: David Hildenbrand (Arm) <[email protected]>



-- 
Thanks,
Usama
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.