]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/756: test name_to_handle_at(AT_HANDLE_MNT_ID_UNIQUE) explicitly
authorAleksa Sarai <cyphar@cyphar.com>
Wed, 4 Sep 2024 19:48:23 +0000 (05:48 +1000)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Sep 2024 05:19:28 +0000 (13:19 +0800)
commit6171b03c92a67b5f4ff1ae730cf33e2c3a42866f
tree054c6b4793822c62d8d52806389d29903960d934
parent1e207662b3ce3ed712a827f4fedc580d0dc8c02f
generic/756: test name_to_handle_at(AT_HANDLE_MNT_ID_UNIQUE) explicitly

In order to make sure we are actually testing AT_HANDLE_MNT_ID_UNIQUE,
add a test (based on generic/426) which runs the open_by_handle in a
mode where it will error out if there is a problem with getting mount
IDs. The test is skipped if the kernel doesn't support the necessary
features.

Suggested-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
src/open_by_handle.c
tests/generic/756 [new file with mode: 0755]
tests/generic/756.out [new file with mode: 0644]