<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/fs, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-05-05T08:59:30Z</updated>
<entry>
<title>Use .pieo extension for WITH_PIE bsd.prog.mk output</title>
<updated>2025-05-05T08:59:30Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2025-04-21T19:52:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=979864eef41b5f8e4d201c2b37e0733c33cf41b2'/>
<id>urn:sha1:979864eef41b5f8e4d201c2b37e0733c33cf41b2</id>
<content type='text'>
When object files for programs are built using bsd.prog.mk, and WITH_PIE
is enabled, the extension used is still plain ".o". To be consistent
with bsd.lib.mk, and to allow changes in WITH_PIE settings to propagate
correctly, the extension should be ".pieo" instead.

MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D49966

(cherry picked from commit 245bb0110639fe963086fb2903143dbd4e6ac48c)
</content>
</entry>
<entry>
<title>tests/sys/fs/fusefs: include iomanip header</title>
<updated>2025-03-26T19:34:05Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2024-10-19T15:34:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eb331308b0d59eeb00b40a25580d4091dd9cc07e'/>
<id>urn:sha1:eb331308b0d59eeb00b40a25580d4091dd9cc07e</id>
<content type='text'>
io.cc relies on `std::setw(..)`, which is exported by the iomanip C++
header. Newer versions of GoogleTest don't export this header, so add
the explicit include.

This unbreaks the build with GoogleTest 1.15.2.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D47194

(cherry picked from commit 0077477f215c851fe15c9ea12cfb005125c4238a)
</content>
</entry>
<entry>
<title>fusefs tests: handle -Wdeprecated* issues with GoogleTest 1.14.0</title>
<updated>2025-03-26T16:40:48Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2023-08-08T13:42:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2adc0bae0b4613282f2a954089b5bdad487a4c2d'/>
<id>urn:sha1:2adc0bae0b4613282f2a954089b5bdad487a4c2d</id>
<content type='text'>
`INSTANTIATE_TEST_CASE_P` has been replaced with `INSTANTIATE_TEST_SUITE_P`.
Replace all uses of the former macro with the latter macro.

While here, address the fact that the latter macro doesn't permit some
of the constructions that the former macro did, e.g., empty parameters,
etc.

Conflicts:
	tests/sys/fs/fusefs/fallocate.cc (fix applied manually)
	tests/sys/fs/fusefs/io.cc (change reverted)

MFC after:	2 weeks
Reviewed by:	asomers
Differential Revision:	https://reviews.freebsd.org/D41398

(cherry picked from commit 811e0a31acafd6ab21f89bec8ba0fb8c09f258d2)
</content>
</entry>
<entry>
<title>fusefs: fix a memory leak</title>
<updated>2025-01-20T22:36:27Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-12-23T20:26:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e8a272048a0fc9f558c7788dd06b0159b56c4585'/>
<id>urn:sha1:e8a272048a0fc9f558c7788dd06b0159b56c4585</id>
<content type='text'>
Fix a leak of a fuse_ticket structure.  The leak mostly affected
NFS-exported fuse file systems, and was triggered by a failure during
FUSE_LOOKUP.

Sponsored by:	ConnectWise

(cherry picked from commit 969d1aa4dbfcbccd8de965f7761203208bf04e46)
</content>
</entry>
<entry>
<title>fusefs: ignore FUSE_NO_OPEN(DIR)_SUPPORT flags</title>
<updated>2025-01-20T22:34:18Z</updated>
<author>
<name>CismonX</name>
<email>admin@cismon.net</email>
</author>
<published>2024-11-02T20:19:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=039609b04d63f2e597d70fec66915a766834e81c'/>
<id>urn:sha1:039609b04d63f2e597d70fec66915a766834e81c</id>
<content type='text'>
The FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT flags
are only meant to indicate kernel features, and should be ignored
if they appear in the FUSE_INIT reply flags.

Also fix the corresponding test cases.

Reviewed by:	Alan Somers &lt;asomers@FreeBSD.org&gt;
Signed-off-by:	CismonX &lt;admin@cismon.net&gt;
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1509

(cherry picked from commit f0f596bd955e5b48c55db502e79fc652ac8970d3)
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" from FreeBSD Foundation copyrights</title>
<updated>2024-09-07T16:30:19Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-07-30T16:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6b9c7f29b0cdf0da752927ca173f590cdf385c89'/>
<id>urn:sha1:6b9c7f29b0cdf0da752927ca173f590cdf385c89</id>
<content type='text'>
These ones were unambiguous cases where the Foundation was the only
listed copyright holder.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 5c2bc3db201a4fe8d7911cf816bea104d5dc2138)
(cherry picked from commit f06d322e9d925ab56a4aa8210a67637d4d341ab6)
</content>
</entry>
<entry>
<title>fusefs: fix two bugs regarding _PC_MIN_HOLE_SIZE</title>
<updated>2024-07-08T20:27:54Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-04-03T19:57:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f936b0cba08315c0127c425692369d0c162fbcf'/>
<id>urn:sha1:7f936b0cba08315c0127c425692369d0c162fbcf</id>
<content type='text'>
Background:

If a user does pathconf(_, _PC_MIN_HOLE_SIZE) on a fusefs file system,
the kernel must actually issue a FUSE_LSEEK operation in order to
determine whether the server supports it.  We cache that result, so we
only have to send FUSE_LSEEK the first time that _PC_MIN_HOLE_SIZE is
requested on any given mountpoint.

Problem 1:

Unlike fpathconf, pathconf operates on files that may not be open.  But
FUSE_LSEEK requires the file to be open.  As described in PR 278135,
FUSE_LSEEK cannot be sent for unopened files, causing _PC_MIN_HOLE_size
to wrongly report EINVAL.  We never noticed that before because the
fusefs test suite only uses fpathconf, not pathconf.  Fix this bug by
opening the file if necessary.

Problem 2:

On a completely sparse file, with no data blocks at all, FUSE_LSEEK with
SEEK_DATA would fail to ENXIO.  That's correct behavior, but
fuse_vnop_pathconf wrongly interpreted that as "FUSE_LSEEK not
supported".  Fix the interpretation.

PR:		278135
Sponsored by:	Axcient
Differential Revision: https://reviews.freebsd.org/D44618

(cherry picked from commit 6efba04df3f8c77b9b12f1df3e5124a7249b82fc)
</content>
</entry>
<entry>
<title>fusefs: make the tests more robust to changes to maxphys</title>
<updated>2024-06-28T18:54:00Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-05-09T14:40:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af64741bba6391a765294a41fe43030d4f242e4b'/>
<id>urn:sha1:af64741bba6391a765294a41fe43030d4f242e4b</id>
<content type='text'>
Remove assumptions in two test cases that maxphys won't be huge.

Reported by:	kib
Sponsored by:	Axcient

(cherry picked from commit b2792a300ddb8d8334b234fe7744f5141cc96103)
</content>
</entry>
<entry>
<title>tests/fusefs: fix all tests that depend on kern.maxphys</title>
<updated>2024-06-28T18:52:07Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-05-06T19:03:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4052c952803f2ba33bb26e13aeeaf9c0651e3702'/>
<id>urn:sha1:4052c952803f2ba33bb26e13aeeaf9c0651e3702</id>
<content type='text'>
The tests try to read kern.maxphys sysctl into int value, while
unsigned long is required.  Not sure when this was broken, seems like
since cd8537910406e.

Reviewed by:		asomers
Differential Revision:	https://reviews.freebsd.org/D45053

(cherry picked from commit e9b411d273336647e61704213964b995952a44fd)
</content>
</entry>
<entry>
<title>fusefs: fix some memory leaks in the tests</title>
<updated>2024-06-13T19:40:59Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-01-17T21:13:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5f1f1115f5b8497b34a5394a0ed47d96a03a1b2'/>
<id>urn:sha1:f5f1f1115f5b8497b34a5394a0ed47d96a03a1b2</id>
<content type='text'>
(cherry picked from commit 39f5d8dd1b2fea7cff0770efb0bc3d6e33e24279)
</content>
</entry>
</feed>
