Skip to contentSkip to conversation

name_to_handle_at: Add test cases for AT_HANDLE_FID

PATCH In review Jan Kara 2 participants 2 messages Oct 21, 2025

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

PATCH 1/1 name_to_handle_at: Add test cases for AT_HANDLE_FID

Add a few testcases verifying AT_HANDLE_FID flag.

---
 include/lapi/fcntl.h                          |  4 +
 .../name_to_handle_at/name_to_handle_at03.c   | 88 +++++++++++++++++++
 2 files changed, 92 insertions(+)
 create mode 100644 testcases/kernel/syscalls/name_to_handle_at/name_to_handle_at03.c

Changes since v1:
* Added kernel commit fixing the issue
* Fixed up test description

include/lapi/fcntl.h +4 -0
index 7c050248892e..55a5e8b40432 100644
@@ -98,6 +98,10 @@
 # define AT_HANDLE_FID		AT_REMOVEDIR
 #endif
 
+#ifndef AT_HANDLE_CONNECTABLE
+# define AT_HANDLE_CONNECTABLE	0x002
+#endif
+
 #ifndef AT_SYMLINK_FOLLOW
 # define AT_SYMLINK_FOLLOW	0x400
 #endif
testcases/kernel/syscalls/name_to_handle_at/name_to_handle_at03.c new file +88 -0

88 lines not on this page · raw message

Signature · 5 lines
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Jan, Amir,

Quoted 10 lines

Add a few testcases verifying AT_HANDLE_FID flag.

---
 include/lapi/fcntl.h                          |  4 +
 .../name_to_handle_at/name_to_handle_at03.c   | 88 +++++++++++++++++++
 2 files changed, 92 insertions(+)
 create mode 100644 testcases/kernel/syscalls/name_to_handle_at/name_to_handle_at03.c
Quoted 3 lines

Changes since v1:
* Added kernel commit fixing the issue
* Fixed up test description

Thanks! Merged with added entry to runtest/syscalls and .gitignore.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp