mbox series

[0/4] Tests for overlayfs immutable/append-only files

Message ID 20210116165619.494265-1-amir73il@gmail.com (mailing list archive)
Headers show
Series Tests for overlayfs immutable/append-only files | expand


Amir Goldstein Jan. 16, 2021, 4:56 p.m. UTC

Overlayfs never had full support for immutable/append-only files.
Whatever works is covered by generic/079 and overlay/030 tests.
Both tests cover only upper files and directories.
generic/079 is notrun on kernel < 5.10 and passes on >= 5.10.

This series improves the t_immutable test program and adds a new test
to cover lower files and directories - the test fails on upstream kernel.
Fixing this requires some VFS API changes that Miklos has proposed [1].

The new test covers two reported bug, one of them is a deadlock.
The deadlock trigger is commented out until we have a fix upstream.


[1] https://lore.kernel.org/linux-unionfs/20201123141207.GC327006@miu.piliscsaba.redhat.com/

Amir Goldstein (4):
  overlay/030: Update comment w.r.t upstream kernel
  src/t_immutable: factor out some helpers
  src/t_immutable: Allow setting flags on existing files
  overlay: Test lost immutable/append-only flags on copy-up

 src/t_immutable.c     | 241 +++++++++++++++++++++---------------------
 tests/overlay/030     |   7 +-
 tests/overlay/075     |  97 +++++++++++++++++
 tests/overlay/075.out |  11 ++
 tests/overlay/group   |   1 +
 5 files changed, 237 insertions(+), 120 deletions(-)
 create mode 100755 tests/overlay/075
 create mode 100644 tests/overlay/075.out