* [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
@ 2026-11-13 17:51 Amir Goldstein
2026-11-13 18:18 ` [LTP] " linuxtestproject.agent
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Amir Goldstein @ 2026-11-13 17:51 UTC (permalink / raw)
To: Petr Vorel; +Cc: Daehyeon Ko, Jan Kara, ltp
Verify that FAN_DELETE_SELF is reported only once, after the last alias
of an unlinked inode is gone.
Open a file via one hardlink, unlink that link and then unlink the other
link. The unlink of the last link drops the last reference of its dentry
while the inode is still open via the first link.
Before the kernel fix, that unlink reported FAN_DELETE_SELF and removed
the inode marks of the still open inode. Closing the file then reported
a second FAN_DELETE_SELF event.
The hardlink reproducer was provided by Daehyeon Ko and the double
FAN_DELETE_SELF event was pointed out by Jan Kara.
Reported-by: Daehyeon Ko <4ncienth@gmail.com>
Link: https://lore.kernel.org/linux-fsdevel/20260828042421.964822-1-4ncienth@gmail.com/
Link: https://lore.kernel.org/linux-fsdevel/ptco7s5x7tjzp42dzlsitibdigpwucl2whwrq37tknjpo7x2lc@b7q27ldlorak/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
runtest/syscalls | 1 +
testcases/kernel/syscalls/fanotify/.gitignore | 1 +
.../kernel/syscalls/fanotify/fanotify27.c | 161 ++++++++++++++++++
3 files changed, 163 insertions(+)
create mode 100644 testcases/kernel/syscalls/fanotify/fanotify27.c
diff --git a/runtest/syscalls b/runtest/syscalls
index 7b6a7d376..92507a7c7 100644
--- a/runtest/syscalls
+++ b/runtest/syscalls
@@ -705,6 +705,7 @@ fanotify23 fanotify23
fanotify24 fanotify24
fanotify25 fanotify25
fanotify26 fanotify26
+fanotify27 fanotify27
ioperm01 ioperm01
ioperm02 ioperm02
diff --git a/testcases/kernel/syscalls/fanotify/.gitignore b/testcases/kernel/syscalls/fanotify/.gitignore
index c13d9b33c..d0b0fed48 100644
--- a/testcases/kernel/syscalls/fanotify/.gitignore
+++ b/testcases/kernel/syscalls/fanotify/.gitignore
@@ -24,4 +24,5 @@
/fanotify24
/fanotify25
/fanotify26
+/fanotify27
/fanotify_child
diff --git a/testcases/kernel/syscalls/fanotify/fanotify27.c b/testcases/kernel/syscalls/fanotify/fanotify27.c
new file mode 100644
index 000000000..50cf9f9ee
--- /dev/null
+++ b/testcases/kernel/syscalls/fanotify/fanotify27.c
@@ -0,0 +1,161 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2026 CTERA Networks. All Rights Reserved.
+ */
+
+/*\
+ * Verify that FAN_DELETE_SELF is reported only once, after the last alias of
+ * an unlinked inode is gone, and that the inode marks are not removed while
+ * the unlinked inode is still open.
+ *
+ * Create two hardlinks to a file with an inode mark for FAN_MODIFY, open the
+ * file via one link and unlink both links, so the unlink of the last link
+ * drops the last dentry reference of that link while the inode is still open
+ * via the other link. Then write to the open file and close it.
+ *
+ * Before the fix, the unlink of the last link reported FAN_DELETE_SELF and
+ * removed all the inode marks of the still open inode, so the write to the
+ * open file did not report FAN_MODIFY. Closing the file then reported a
+ * second FAN_DELETE_SELF event.
+ */
+
+#define _GNU_SOURCE
+#include "config.h"
+
+#include <errno.h>
+#include <string.h>
+#include "tst_test.h"
+
+#ifdef HAVE_SYS_FANOTIFY_H
+#include "fanotify.h"
+
+#define MOUNT_PATH "mntpoint"
+#define FILE_A MOUNT_PATH "/file_a"
+#define FILE_B MOUNT_PATH "/file_b"
+#define EVENT_BUF_LEN 4096
+
+#if defined(HAVE_NAME_TO_HANDLE_AT)
+static int fanotify_fd = -1;
+static int file_fd = -1;
+static struct fanotify_fid_t victim_fid;
+
+static int event_matches_victim(struct fanotify_event_metadata *metadata)
+{
+ struct fanotify_event_info_fid *info;
+ struct file_handle *handle;
+
+ info = get_event_info_fid(metadata);
+ if (!info)
+ return 0;
+
+ handle = (struct file_handle *)info->handle;
+ if (handle->handle_type != victim_fid.handle.handle_type ||
+ handle->handle_bytes != victim_fid.handle.handle_bytes)
+ return 0;
+
+ return !memcmp(handle->f_handle, victim_fid.handle.f_handle,
+ handle->handle_bytes);
+}
+
+static void read_events(unsigned int *delete_self, unsigned int *modify)
+{
+ struct fanotify_event_metadata *metadata;
+ char buf[EVENT_BUF_LEN];
+ int len;
+
+ *delete_self = *modify = 0;
+
+ while ((len = read(fanotify_fd, buf, sizeof(buf))) > 0) {
+ for (metadata = (struct fanotify_event_metadata *)buf;
+ FAN_EVENT_OK(metadata, len);
+ metadata = FAN_EVENT_NEXT(metadata, len)) {
+ if (!event_matches_victim(metadata))
+ continue;
+ if (metadata->mask & FAN_DELETE_SELF)
+ (*delete_self)++;
+ if (metadata->mask & FAN_MODIFY)
+ (*modify)++;
+ }
+ }
+
+ if (len < 0 && errno != EAGAIN)
+ tst_brk(TBROK | TERRNO, "read(fanotify_fd) failed");
+}
+
+static void setup(void)
+{
+ REQUIRE_FANOTIFY_EVENTS_SUPPORTED_ON_FS(FAN_REPORT_FID,
+ FAN_MARK_FILESYSTEM, FAN_DELETE_SELF, MOUNT_PATH);
+
+ fanotify_fd = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_REPORT_FID |
+ FAN_NONBLOCK | FAN_CLOEXEC,
+ O_RDONLY | O_LARGEFILE);
+ SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD | FAN_MARK_FILESYSTEM,
+ FAN_DELETE_SELF, AT_FDCWD, MOUNT_PATH);
+}
+
+static void cleanup(void)
+{
+ if (file_fd >= 0)
+ SAFE_CLOSE(file_fd);
+ if (fanotify_fd >= 0)
+ SAFE_CLOSE(fanotify_fd);
+}
+
+static void run(void)
+{
+ unsigned int delete_self, modify;
+
+ SAFE_TOUCH(FILE_A, 0600, NULL);
+ memset(&victim_fid, 0, sizeof(victim_fid));
+ fanotify_save_fid(FILE_A, &victim_fid);
+ SAFE_LINK(FILE_A, FILE_B);
+ SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD, FAN_MODIFY,
+ AT_FDCWD, FILE_A);
+
+ file_fd = SAFE_OPEN(FILE_B, O_WRONLY);
+ SAFE_UNLINK(FILE_B);
+ SAFE_UNLINK(FILE_A);
+
+ read_events(&delete_self, &modify);
+ if (delete_self)
+ tst_res(TFAIL, "Got FAN_DELETE_SELF while file is still open");
+ else
+ tst_res(TPASS, "No FAN_DELETE_SELF while file is still open");
+
+ SAFE_WRITE(SAFE_WRITE_ALL, file_fd, "x", 1);
+ read_events(&delete_self, &modify);
+ if (modify != 1)
+ tst_res(TFAIL, "Got %u FAN_MODIFY events on unlinked open file, expected 1",
+ modify);
+ else
+ tst_res(TPASS, "Inode mark still alive on unlinked open file");
+
+ SAFE_CLOSE(file_fd);
+ read_events(&delete_self, &modify);
+ if (delete_self != 1)
+ tst_res(TFAIL, "Got %u FAN_DELETE_SELF events on last close, expected 1",
+ delete_self);
+ else
+ tst_res(TPASS, "Got one FAN_DELETE_SELF event on last close");
+}
+
+static struct tst_test test = {
+ .test_all = run,
+ .setup = setup,
+ .cleanup = cleanup,
+ .needs_root = 1,
+ .mount_device = 1,
+ .mntpoint = MOUNT_PATH,
+ .tags = (const struct tst_tag[]) {
+ {"linux-git", "669bb5af15d41a21359d00a441490f87a88eb52a"},
+ {}
+ }
+};
+
+#else
+ TST_TEST_TCONF("System does not have required name_to_handle_at() support");
+#endif
+#else
+ TST_TEST_TCONF("System does not have required fanotify support");
+#endif
--
2.56.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [LTP] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
2026-11-13 17:51 [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file Amir Goldstein
@ 2026-11-13 18:18 ` linuxtestproject.agent
2026-11-16 11:18 ` [LTP] [PATCH] " Jan Kara
2026-12-01 14:44 ` Petr Vorel
2 siblings, 0 replies; 6+ messages in thread
From: linuxtestproject.agent @ 2026-11-13 18:18 UTC (permalink / raw)
To: Amir Goldstein; +Cc: ltp
Hi Amir,
On Fri Nov 13 18:51:18 2026 +0100, Amir Goldstein <amir73il@gmail.com> wrote:
> fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
> + * Before the fix, the unlink of the last link reported FAN_DELETE_SELF and
> + * removed all the inode marks of the still open inode, so the write to the
> + * open file did not report FAN_MODIFY. Closing the file then reported a
> + * second FAN_DELETE_SELF event.
> + */
Document why .needs_root = 1 is required in the /*\ ... */ comment block
(mounting the test filesystem and using FAN_MARK_FILESYSTEM).
> + while ((len = read(fanotify_fd, buf, sizeof(buf))) > 0) {
> + for (metadata = (struct fanotify_event_metadata *)buf;
> + FAN_EVENT_OK(metadata, len);
> + metadata = FAN_EVENT_NEXT(metadata, len)) {
> + if (!event_matches_victim(metadata))
> + continue;
> + if (metadata->mask & FAN_DELETE_SELF)
> + (*delete_self)++;
> + if (metadata->mask & FAN_MODIFY)
> + (*modify)++;
> + }
> + }
> +
> + if (len < 0 && errno != EAGAIN)
> + tst_brk(TBROK | TERRNO, "read(fanotify_fd) failed");
Use SAFE_READ(SAFE_READ_ANY_EAGAIN, fanotify_fd, buf, sizeof(buf)) in the
while condition and drop the manual errno != EAGAIN check.
> +static void cleanup(void)
> +{
> + if (file_fd >= 0)
> + SAFE_CLOSE(file_fd);
> + if (fanotify_fd >= 0)
> + SAFE_CLOSE(fanotify_fd);
> +}
Use file_fd != -1 and fanotify_fd != -1 to check file descriptor validity.
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
2026-11-13 17:51 [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file Amir Goldstein
2026-11-13 18:18 ` [LTP] " linuxtestproject.agent
@ 2026-11-16 11:18 ` Jan Kara
2026-12-01 14:44 ` Petr Vorel
2 siblings, 0 replies; 6+ messages in thread
From: Jan Kara @ 2026-11-16 11:18 UTC (permalink / raw)
To: Amir Goldstein; +Cc: Daehyeon Ko, Jan Kara, ltp
On Fri 13-11-26 18:51:18, Amir Goldstein wrote:
> Verify that FAN_DELETE_SELF is reported only once, after the last alias
> of an unlinked inode is gone.
>
> Open a file via one hardlink, unlink that link and then unlink the other
> link. The unlink of the last link drops the last reference of its dentry
> while the inode is still open via the first link.
>
> Before the kernel fix, that unlink reported FAN_DELETE_SELF and removed
> the inode marks of the still open inode. Closing the file then reported
> a second FAN_DELETE_SELF event.
>
> The hardlink reproducer was provided by Daehyeon Ko and the double
> FAN_DELETE_SELF event was pointed out by Jan Kara.
>
> Reported-by: Daehyeon Ko <4ncienth@gmail.com>
> Link: https://lore.kernel.org/linux-fsdevel/20260828042421.964822-1-4ncienth@gmail.com/
> Link: https://lore.kernel.org/linux-fsdevel/ptco7s5x7tjzp42dzlsitibdigpwucl2whwrq37tknjpo7x2lc@b7q27ldlorak/
> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Nice! Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> runtest/syscalls | 1 +
> testcases/kernel/syscalls/fanotify/.gitignore | 1 +
> .../kernel/syscalls/fanotify/fanotify27.c | 161 ++++++++++++++++++
> 3 files changed, 163 insertions(+)
> create mode 100644 testcases/kernel/syscalls/fanotify/fanotify27.c
>
> diff --git a/runtest/syscalls b/runtest/syscalls
> index 7b6a7d376..92507a7c7 100644
> --- a/runtest/syscalls
> +++ b/runtest/syscalls
> @@ -705,6 +705,7 @@ fanotify23 fanotify23
> fanotify24 fanotify24
> fanotify25 fanotify25
> fanotify26 fanotify26
> +fanotify27 fanotify27
>
> ioperm01 ioperm01
> ioperm02 ioperm02
> diff --git a/testcases/kernel/syscalls/fanotify/.gitignore b/testcases/kernel/syscalls/fanotify/.gitignore
> index c13d9b33c..d0b0fed48 100644
> --- a/testcases/kernel/syscalls/fanotify/.gitignore
> +++ b/testcases/kernel/syscalls/fanotify/.gitignore
> @@ -24,4 +24,5 @@
> /fanotify24
> /fanotify25
> /fanotify26
> +/fanotify27
> /fanotify_child
> diff --git a/testcases/kernel/syscalls/fanotify/fanotify27.c b/testcases/kernel/syscalls/fanotify/fanotify27.c
> new file mode 100644
> index 000000000..50cf9f9ee
> --- /dev/null
> +++ b/testcases/kernel/syscalls/fanotify/fanotify27.c
> @@ -0,0 +1,161 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (c) 2026 CTERA Networks. All Rights Reserved.
> + */
> +
> +/*\
> + * Verify that FAN_DELETE_SELF is reported only once, after the last alias of
> + * an unlinked inode is gone, and that the inode marks are not removed while
> + * the unlinked inode is still open.
> + *
> + * Create two hardlinks to a file with an inode mark for FAN_MODIFY, open the
> + * file via one link and unlink both links, so the unlink of the last link
> + * drops the last dentry reference of that link while the inode is still open
> + * via the other link. Then write to the open file and close it.
> + *
> + * Before the fix, the unlink of the last link reported FAN_DELETE_SELF and
> + * removed all the inode marks of the still open inode, so the write to the
> + * open file did not report FAN_MODIFY. Closing the file then reported a
> + * second FAN_DELETE_SELF event.
> + */
> +
> +#define _GNU_SOURCE
> +#include "config.h"
> +
> +#include <errno.h>
> +#include <string.h>
> +#include "tst_test.h"
> +
> +#ifdef HAVE_SYS_FANOTIFY_H
> +#include "fanotify.h"
> +
> +#define MOUNT_PATH "mntpoint"
> +#define FILE_A MOUNT_PATH "/file_a"
> +#define FILE_B MOUNT_PATH "/file_b"
> +#define EVENT_BUF_LEN 4096
> +
> +#if defined(HAVE_NAME_TO_HANDLE_AT)
> +static int fanotify_fd = -1;
> +static int file_fd = -1;
> +static struct fanotify_fid_t victim_fid;
> +
> +static int event_matches_victim(struct fanotify_event_metadata *metadata)
> +{
> + struct fanotify_event_info_fid *info;
> + struct file_handle *handle;
> +
> + info = get_event_info_fid(metadata);
> + if (!info)
> + return 0;
> +
> + handle = (struct file_handle *)info->handle;
> + if (handle->handle_type != victim_fid.handle.handle_type ||
> + handle->handle_bytes != victim_fid.handle.handle_bytes)
> + return 0;
> +
> + return !memcmp(handle->f_handle, victim_fid.handle.f_handle,
> + handle->handle_bytes);
> +}
> +
> +static void read_events(unsigned int *delete_self, unsigned int *modify)
> +{
> + struct fanotify_event_metadata *metadata;
> + char buf[EVENT_BUF_LEN];
> + int len;
> +
> + *delete_self = *modify = 0;
> +
> + while ((len = read(fanotify_fd, buf, sizeof(buf))) > 0) {
> + for (metadata = (struct fanotify_event_metadata *)buf;
> + FAN_EVENT_OK(metadata, len);
> + metadata = FAN_EVENT_NEXT(metadata, len)) {
> + if (!event_matches_victim(metadata))
> + continue;
> + if (metadata->mask & FAN_DELETE_SELF)
> + (*delete_self)++;
> + if (metadata->mask & FAN_MODIFY)
> + (*modify)++;
> + }
> + }
> +
> + if (len < 0 && errno != EAGAIN)
> + tst_brk(TBROK | TERRNO, "read(fanotify_fd) failed");
> +}
> +
> +static void setup(void)
> +{
> + REQUIRE_FANOTIFY_EVENTS_SUPPORTED_ON_FS(FAN_REPORT_FID,
> + FAN_MARK_FILESYSTEM, FAN_DELETE_SELF, MOUNT_PATH);
> +
> + fanotify_fd = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF | FAN_REPORT_FID |
> + FAN_NONBLOCK | FAN_CLOEXEC,
> + O_RDONLY | O_LARGEFILE);
> + SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD | FAN_MARK_FILESYSTEM,
> + FAN_DELETE_SELF, AT_FDCWD, MOUNT_PATH);
> +}
> +
> +static void cleanup(void)
> +{
> + if (file_fd >= 0)
> + SAFE_CLOSE(file_fd);
> + if (fanotify_fd >= 0)
> + SAFE_CLOSE(fanotify_fd);
> +}
> +
> +static void run(void)
> +{
> + unsigned int delete_self, modify;
> +
> + SAFE_TOUCH(FILE_A, 0600, NULL);
> + memset(&victim_fid, 0, sizeof(victim_fid));
> + fanotify_save_fid(FILE_A, &victim_fid);
> + SAFE_LINK(FILE_A, FILE_B);
> + SAFE_FANOTIFY_MARK(fanotify_fd, FAN_MARK_ADD, FAN_MODIFY,
> + AT_FDCWD, FILE_A);
> +
> + file_fd = SAFE_OPEN(FILE_B, O_WRONLY);
> + SAFE_UNLINK(FILE_B);
> + SAFE_UNLINK(FILE_A);
> +
> + read_events(&delete_self, &modify);
> + if (delete_self)
> + tst_res(TFAIL, "Got FAN_DELETE_SELF while file is still open");
> + else
> + tst_res(TPASS, "No FAN_DELETE_SELF while file is still open");
> +
> + SAFE_WRITE(SAFE_WRITE_ALL, file_fd, "x", 1);
> + read_events(&delete_self, &modify);
> + if (modify != 1)
> + tst_res(TFAIL, "Got %u FAN_MODIFY events on unlinked open file, expected 1",
> + modify);
> + else
> + tst_res(TPASS, "Inode mark still alive on unlinked open file");
> +
> + SAFE_CLOSE(file_fd);
> + read_events(&delete_self, &modify);
> + if (delete_self != 1)
> + tst_res(TFAIL, "Got %u FAN_DELETE_SELF events on last close, expected 1",
> + delete_self);
> + else
> + tst_res(TPASS, "Got one FAN_DELETE_SELF event on last close");
> +}
> +
> +static struct tst_test test = {
> + .test_all = run,
> + .setup = setup,
> + .cleanup = cleanup,
> + .needs_root = 1,
> + .mount_device = 1,
> + .mntpoint = MOUNT_PATH,
> + .tags = (const struct tst_tag[]) {
> + {"linux-git", "669bb5af15d41a21359d00a441490f87a88eb52a"},
> + {}
> + }
> +};
> +
> +#else
> + TST_TEST_TCONF("System does not have required name_to_handle_at() support");
> +#endif
> +#else
> + TST_TEST_TCONF("System does not have required fanotify support");
> +#endif
> --
> 2.56.0
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
2026-11-13 17:51 [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file Amir Goldstein
2026-11-13 18:18 ` [LTP] " linuxtestproject.agent
2026-11-16 11:18 ` [LTP] [PATCH] " Jan Kara
@ 2026-12-01 14:44 ` Petr Vorel
2026-12-01 15:27 ` Amir Goldstein
2 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2026-12-01 14:44 UTC (permalink / raw)
To: Amir Goldstein; +Cc: Daehyeon Ko, Jan Kara, ltp
Hi Amir,
thanks for the test. LGTM, I'll have a deeper look next week (we have hackweek
in SUSE).
...
> +#if defined(HAVE_NAME_TO_HANDLE_AT)
very nit: #ifdef HAVE_NAME_TO_HANDLE_AT
> +
> +#else
> + TST_TEST_TCONF("System does not have required name_to_handle_at() support");
Can't we use name_to_handle_at() fallback from include/lapi/name_to_handle_at.h
to run the syscall directly? It will quit with TCONF on old kernels without that
syscall.
Kind regards,
Petr
> +#endif
> +#else
> + TST_TEST_TCONF("System does not have required fanotify support");
> +#endif
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
2026-12-01 14:44 ` Petr Vorel
@ 2026-12-01 15:27 ` Amir Goldstein
2026-12-01 15:37 ` Petr Vorel
0 siblings, 1 reply; 6+ messages in thread
From: Amir Goldstein @ 2026-12-01 15:27 UTC (permalink / raw)
To: Petr Vorel; +Cc: Daehyeon Ko, Jan Kara, ltp
On Tue, Dec 1, 2026 at 3:44 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Amir,
>
> thanks for the test. LGTM, I'll have a deeper look next week (we have hackweek
> in SUSE).
>
> ...
> > +#if defined(HAVE_NAME_TO_HANDLE_AT)
> very nit: #ifdef HAVE_NAME_TO_HANDLE_AT
>
> > +
> > +#else
> > + TST_TEST_TCONF("System does not have required name_to_handle_at() support");
>
> Can't we use name_to_handle_at() fallback from include/lapi/name_to_handle_at.h
> to run the syscall directly? It will quit with TCONF on old kernels without that
> syscall.
fine by me, but I didn't test this.
Thanks,
Amir.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file
2026-12-01 15:27 ` Amir Goldstein
@ 2026-12-01 15:37 ` Petr Vorel
0 siblings, 0 replies; 6+ messages in thread
From: Petr Vorel @ 2026-12-01 15:37 UTC (permalink / raw)
To: Amir Goldstein; +Cc: Daehyeon Ko, Jan Kara, ltp
> On Tue, Dec 1, 2026 at 3:44 PM Petr Vorel <pvorel@suse.cz> wrote:
> > Hi Amir,
> > thanks for the test. LGTM, I'll have a deeper look next week (we have hackweek
> > in SUSE).
> > ...
> > > +#if defined(HAVE_NAME_TO_HANDLE_AT)
> > very nit: #ifdef HAVE_NAME_TO_HANDLE_AT
> > > +
> > > +#else
> > > + TST_TEST_TCONF("System does not have required name_to_handle_at() support");
> > Can't we use name_to_handle_at() fallback from include/lapi/name_to_handle_at.h
> > to run the syscall directly? It will quit with TCONF on old kernels without that
> > syscall.
> fine by me, but I didn't test this.
+1, I'll send a diff or v2 next week.
Kind regards,
Petr
> Thanks,
> Amir.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-12-01 15:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 17:51 [LTP] [PATCH] fanotify27: Test FAN_DELETE_SELF on unlinked hardlinked open file Amir Goldstein
2026-11-13 18:18 ` [LTP] " linuxtestproject.agent
2026-11-16 11:18 ` [LTP] [PATCH] " Jan Kara
2026-12-01 14:44 ` Petr Vorel
2026-12-01 15:27 ` Amir Goldstein
2026-12-01 15:37 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox