Vfs import (Re: vfs_cow)

Emery Hemingway ehmry at posteo.net
Mon Jul 30 15:32:27 CEST 2018


Hi Roman,

Good to hear that this will work for you, the "import" use case seems much
more common than a full "copy-on-write".

On Monday, July 30, 2018 3:02:09 PM CEST, Roman Iten wrote:
>
> ! <config>
> !   <vfs>
> !     <fs label="user_data"/>
> !     <import>
> ! 	<fs label="template_data">
> !     </import>
> !   </vfs>
> !   <default-policy root="/" writeable="yes"/>
> ! </config>
>
> In case "user_data" is a persistent file system, the files and/or
> directories that are going to be imported from "template_data" may
> already exist in "user_data". Will they remain untouched or are they
> overwritten? Or is there an attribute (like <import overwrite|force=...)
> to control the behavior?
>

On the "genodelabs/staging" branch the plugin will never overwrite existing
files, but on the "cnuke/staging" branch there is a commit that adds an
`<import overwrite="1">`  option.

https://github.com/cnuke/genode/commit/332a9d9382e776fa5385331fef1750abcc0a6b1f

Cheers,
Emery



More information about the users mailing list