[PATCH 24/33] generic: add _require_hardlinks to tests that require hardlinks

Darrick J. Wong
2025-10-29T01:26:41Z

These three tests require hardlink support, so add _require_hardlinks.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
tests/generic/079 | 1 +
tests/generic/423 | 1 +
tests/generic/597 | 1 +
3 files changed, 3 insertions(+)

diff --git a/tests/generic/079 b/tests/generic/079
index df9ae52cdd5914..dda85aa1de5fc1 100755
--- a/tests/generic/079
+++ b/tests/generic/079
@@ -29,6 +29,7 @@ _require_user_exists "nobody"
_require_user_exists "daemon"
_require_test_program "t_immutable"
_require_scratch
+_require_hardlinks

_scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed"
_scratch_mount
diff --git a/tests/generic/423 b/tests/generic/423
index 9d41f7a8fa8e62..af2d3451196d11 100755
--- a/tests/generic/423
+++ b/tests/generic/423
@@ -28,6 +28,7 @@ _require_test_program "af_unix"
_require_statx
_require_symlinks
_require_mknod
+_require_hardlinks

function check_stat () {
$here/src/stat_test $* || echo stat_test failed
diff --git a/tests/generic/597 b/tests/generic/597
index b97265fb896f09..985136323d3abe 100755
--- a/tests/generic/597
+++ b/tests/generic/597
@@ -35,6 +35,7 @@ _require_group fsgqa2
_require_user fsgqa
_require_group fsgqa
_require_symlinks
+_require_hardlinks

OWNER=fsgqa2
OTHER=fsgqa