aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/aio
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2021-07-23 13:57:44 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2021-07-23 14:19:29 +0000
commit9666cda9764a1d19cbf967940508dc6d2020cbfb (patch)
tree6e20292185b84c6941e55c5846d5dd87f70fdf5d /tests/sys/aio
parentea0e1b19f232331bffa75a0a64a6859c40f1cc4d (diff)
downloadsrc-9666cda9764a1d19cbf967940508dc6d2020cbfb.tar.gz
src-9666cda9764a1d19cbf967940508dc6d2020cbfb.zip
aio_md_test: label the md
Add a label to md devices created by this test. The next time this test leaks md devices, finding the culprit will be much easier. Thanks to: sobomax, for adding labels in r322969 MFC after: 1 week Sponsored by: Dell EMC Isilon
Diffstat (limited to 'tests/sys/aio')
-rw-r--r--tests/sys/aio/aio_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sys/aio/aio_test.c b/tests/sys/aio/aio_test.c
index 00b0f430529f..6681a13653b4 100644
--- a/tests/sys/aio/aio_test.c
+++ b/tests/sys/aio/aio_test.c
@@ -734,6 +734,8 @@ aio_md_setup(void)
mdio.md_options = MD_AUTOUNIT | MD_COMPRESS;
mdio.md_mediasize = GLOBAL_MAX;
mdio.md_sectorsize = 512;
+ strlcpy(buf, __func__, sizeof(buf));
+ mdio.md_label = buf;
if (ioctl(mdctl_fd, MDIOCATTACH, &mdio) < 0) {
error = errno;