Skip to content

Commit

Permalink
syscalls/fanotify09: Note backport of commit e730558adffb
Browse files Browse the repository at this point in the history
I backported commit e730558adffb ("fsnotify: consistent behavior for
parent not watching children") to v5.15.y and v5.10.y. Update
fanotify09 to test older LTS kernels containing that commit.

Link: https://lore.kernel.org/ltp/[email protected]/
Suggested-by: Amir Goldstein <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
  • Loading branch information
chucklever authored and pevik committed Sep 3, 2024
1 parent d3f1f93 commit 36f12d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testcases/kernel/syscalls/fanotify/fanotify09.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* 7372e79c9eb9 fanotify: fix logic of reporting name info with watched parent
*
* Test cases #6-#7 are regression tests for commit:
* (from v5.19, unlikely to be backported thus not in .tags):
*
* e730558adffb fanotify: consistent behavior for parent not watching children
*/
Expand Down Expand Up @@ -380,9 +379,9 @@ static void test_fanotify(unsigned int n)
return;
}

if (tc->ignore && tst_kvercmp(5, 19, 0) < 0) {
if (tc->ignore && tst_kvercmp(5, 10, 0) < 0) {
tst_res(TCONF, "ignored mask on parent dir has undefined "
"behavior on kernel < 5.19");
"behavior on kernel < 5.10");
return;
}

Expand Down Expand Up @@ -520,6 +519,7 @@ static struct tst_test test = {
{"linux-git", "b469e7e47c8a"},
{"linux-git", "55bf882c7f13"},
{"linux-git", "7372e79c9eb9"},
{"linux-git", "e730558adffb"},
{}
}
};
Expand Down

0 comments on commit 36f12d7

Please sign in to comment.