[Skiboot] [PATCH] external/mambo: support mambo COW mode for PMEM disk
oohall at gmail.com
Tue Feb 25 15:10:09 AEDT 2020
On Wed, Feb 19, 2020 at 10:54 AM Aaron Sawdey
<acsawdey at linux.vnet.ibm.com> wrote:
> I've added support in mambo's "memory mmap" command to have a "cow" mode
> which just uses MAP_PRIVATE instead of MAP_SHARED on the file so that writes
> to the memory region are not sent back to the file. This allows multiple
> mambo instances to share the same filesystem image.
> This is implemented by having a PMEM_MODES environment variable. If this
> is set, it is expected to contain a comma separated list of modes (rw or cow)
> for the list of files in PMEM_DISK. If there are fewer modes than files, the
> remaining files default to "rw".
Thanks, merged as f123417068e51842004bdc047c8c5107b70442ef
I'll happily take a follow up patch for Mikey's suggestions though.
More information about the Skiboot