Files
apfstests/tests/overlay
Amir Goldstein f3bdafb91b overlay/029: fix test failure with nfs_export feature enabled
When overlayfs nfs_export feature is enabled by default in either kernel
config or module parameters, this test fails:

    mount: /tmp/8751/mnt: mount(2) system call failed: Stale file handle.
    cat: /tmp/8751/mnt/bar: No such file or directory

The reason is that nfs_export depends on index feature and with index
feature enabled, an upper/work dirs cannot be reused for mounting with
a different lower layer.

To reproduce the failure do:
  echo Y > /sys/module/overlay/parameters/index
  echo Y > /sys/module/overlay/parameters/nfs_export
before running the test.

Fix the failure by explicitly re-creating upper/work dirs.

Reported-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2020-05-10 20:20:02 +08:00
..
2016-05-09 10:55:44 +10:00
2016-06-23 20:18:29 +08:00
2016-06-23 20:18:32 +08:00
2016-07-31 10:37:08 +08:00
2018-04-22 18:44:16 +08:00
2018-08-26 20:55:28 +08:00
2018-08-26 20:55:28 +08:00
2017-05-01 14:08:03 +08:00
2017-01-17 11:21:54 +08:00
2017-02-23 18:40:57 +08:00
2017-11-26 15:38:55 +08:00
2017-09-04 15:40:52 +08:00
2017-09-17 22:24:28 +08:00
2018-02-08 20:20:22 +08:00
2018-02-08 20:20:22 +08:00
2019-06-02 15:06:11 +08:00
2018-02-08 20:20:22 +08:00
2019-11-02 14:30:14 +08:00