]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: liveupdate: add test for double preservation
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 26 Mar 2026 16:39:43 +0000 (16:39 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 18 Apr 2026 07:10:49 +0000 (00:10 -0700)
commite3e613a33e654a37c4fb34b7eb2776008c461e0c
treead486f5448f16e2571eb79e0606e0edd9bcc2e3d
parentbc3a5763f4664c5da812eb3f14d55b0c99abd4ab
selftests: liveupdate: add test for double preservation

Verify that a file can only be preserved once across all active sessions.
Attempting to preserve it a second time, whether in the same or a
different session, should fail with EBUSY.

Link: https://lore.kernel.org/20260326163943.574070-4-pasha.tatashin@soleen.com
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Cc: David Matlack <dmatlack@google.com>
Cc: Pratyush Yadav <pratyush@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/liveupdate/liveupdate.c