name_to_handle_at: Add test cases for AT_HANDLE_FID
PATCH 1/1 name_to_handle_at: Add test cases for AT_HANDLE_FID
Add a few testcases verifying AT_HANDLE_FID flag.
Reviewed-by Amir Goldstein <[email protected]>
Signed-off-by Jan Kara <[email protected]>
--- 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
@@ -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
Hi Jan, Amir,
Quoted 10 lines
Add a few testcases verifying
AT_HANDLE_FIDflag.Reviewed-by Amir Goldstein <[email protected]>Signed-off-by Jan Kara <[email protected]>--- 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