ltp icon indicating copy to clipboard operation
ltp copied to clipboard

Improve coverage for open_tree01 testcase

Open metan-ucw opened this issue 1 year ago • 2 comments

  • The test always passes OPEN_TREE_CLONE, bug?
  • AT_RECURSIVE is not tested at all

metan-ucw avatar Jul 19 '24 16:07 metan-ucw

If not pass OPEN_TREE_CLONE flag, then move_mount will return TFAIL: move_mount() failed: EINVAL (22) It seems move_mount need new namespace otherwise will trigger a error.

In following code "attached" will become 1 and move_mount will go out with failure. https://elixir.bootlin.com/linux/v6.12.6/source/fs/namespace.c#L3320

coolgw avatar Jan 01 '25 02:01 coolgw

Base following code shows add OPEN_TREE_CLONE will add AT_RECURSIVE automatically: https://elixir.bootlin.com/linux/v6.12.6/source/fs/namespace.c#L2877

coolgw avatar Feb 12 '25 03:02 coolgw