Date: Fri, 23 Jul 2021 14:19:54 GMT From: Eric van Gyzen <vangyzen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9666cda9764a - main - aio_md_test: label the md Message-ID: <202107231419.16NEJsuu074904@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by vangyzen: URL: https://cgit.FreeBSD.org/src/commit/?id=9666cda9764a1d19cbf967940508dc6d2020cbfb commit 9666cda9764a1d19cbf967940508dc6d2020cbfb Author: Eric van Gyzen <vangyzen@FreeBSD.org> AuthorDate: 2021-07-23 13:57:44 +0000 Commit: Eric van Gyzen <vangyzen@FreeBSD.org> CommitDate: 2021-07-23 14:19:29 +0000 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 --- tests/sys/aio/aio_test.c | 2 ++ 1 file changed, 2 insertions(+) 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107231419.16NEJsuu074904>