<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/ublk/test_loop_04.sh, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-31T13:36:41Z</updated>
<entry>
<title>selftests: ublk: derive TID automatically from script name</title>
<updated>2026-01-31T13:36:41Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2026-01-29T16:19:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a4d8bed0b47543b2dfce0b1d714b40d68ff2f7e'/>
<id>urn:sha1:3a4d8bed0b47543b2dfce0b1d714b40d68ff2f7e</id>
<content type='text'>
Add automatic TID derivation in test_common.sh based on the script
filename. The TID is extracted by stripping the "test_" prefix and
".sh" suffix from the script name (e.g., test_loop_01.sh -&gt; loop_01).

This removes the need for each test script to manually define TID,
reducing boilerplate and preventing potential mismatches between
the script name and TID. Scripts can still override TID after
sourcing test_common.sh if needed.

Reviewed-by: Caleb Sander Mateos &lt;csander@purestorage.com&gt;
Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: cleanup backfile automatically</title>
<updated>2025-04-17T01:32:18Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-04-12T02:30:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d31a7e505340a69528cbccb0894ef530f123cbb'/>
<id>urn:sha1:8d31a7e505340a69528cbccb0894ef530f123cbb</id>
<content type='text'>
Use global array of $UBLK_BACKFILES for storing all backfile name, then
clean them automatically.

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250412023035.2649275-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: improve test usability</title>
<updated>2025-03-10T22:24:42Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-03-03T12:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=390174c91d2d67297cfc4faa4d4bf5a8a090ac33'/>
<id>urn:sha1:390174c91d2d67297cfc4faa4d4bf5a8a090ac33</id>
<content type='text'>
Add UBLK_TEST_QUIET, so we can print test result(PASS/SKIP/FAIL) only.

Also always run from test script's current directory, then the same test
script can be started from other work directory.

This way helps a lot to reuse this test source code and scripts for
other projects(liburing, blktests, ...)

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250303124324.3563605-12-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: move zero copy feature check into _add_ublk_dev()</title>
<updated>2025-03-10T22:24:42Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-03-03T12:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2cb669a86c153d3449b672191ab253cdda8a295'/>
<id>urn:sha1:c2cb669a86c153d3449b672191ab253cdda8a295</id>
<content type='text'>
Move zero copy feature check into _add_ublk_dev() since we will have
more tests which requires to cover zero copy.

Then one check function of _check_add_dev() has to be added for dealing
with cleanup since '_add_ublk_dev()' is run in sub-shell, and we can't
exit from it to terminal shell.

Meantime always return error code from _add_ublk_dev().

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250303124324.3563605-8-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: don't pass ${dev_id} to _cleanup_test()</title>
<updated>2025-03-10T22:24:42Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-03-03T12:43:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c83b089a70ec1e81fc7899aacf4de56a1872585a'/>
<id>urn:sha1:c83b089a70ec1e81fc7899aacf4de56a1872585a</id>
<content type='text'>
More devices can be created in single tests, so simply remove all
ublk devices in _cleanup_test(), meantime remove the ${dev_id} argument
of _cleanup_test().

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250303124324.3563605-7-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: support shellcheck and fix all warning</title>
<updated>2025-03-10T22:24:42Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-03-03T12:43:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=632051ffbd90ba39947230297871c34e58e9fdad'/>
<id>urn:sha1:632051ffbd90ba39947230297871c34e58e9fdad</id>
<content type='text'>
Add shellcheck, meantime fixes all warnings.

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250303124324.3563605-6-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>selftests: ublk: add ublk zero copy test</title>
<updated>2025-02-28T16:28:08Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2025-02-28T16:19:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bedc9cbc5f9709b97646fe3423dbf530b74b09d5'/>
<id>urn:sha1:bedc9cbc5f9709b97646fe3423dbf530b74b09d5</id>
<content type='text'>
Enable zero copy on file backed target, meantime add one fio test for
covering write verify, another test for mkfs/mount/umount.

Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20250228161919.2869102-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
