Re: [PATCH 3/3] ovl: Use real disk UUID for origin file handles
From: Christoph Hellwig
Date: Wed Jan 14 2026 - 01:26:13 EST
On Wed, Jan 14, 2026 at 01:31:43AM -0300, André Almeida wrote:
> Some filesystem, like btrfs, supports mounting cloned images, but assign
> random UUIDs for them to avoid conflicts. This breaks overlayfs "index"
> check, given that every time the same image is mounted, it get's
> assigned a new UUID.
... and the fix is to not assign random uuid, but to assign a new uuid
to the cloned image that is persisted. That might need a new field
to distintguish the stamped into the format uuid from the visible
uuid like the xfs metauuid, but not hacks like this.