Re: mount_union(8) vs. open(O_RDWR)

2021-12-02 Thread David Holland
On Thu, Dec 02, 2021 at 05:23:37PM +0100, J. Hannken-Illjes wrote: > This behaviour comes from sys/fs/union/union_vnops.c::union_access(): > > /* > * Check access permission on the union vnode. > * The access check being enforced is to check > * against both the underlying vnode, and

Re: mount_union(8) vs. open(O_RDWR)

2021-12-02 Thread J. Hannken-Illjes
> On 2. Dec 2021, at 11:55, Greg A. Woods wrote: > > I've been experimenting with more complete install.img and cdrom ISOs, > i.e. with complete tools and filesystems, and in doing so I've come up > with (what I think is) a better way to expose and use a fully populated > /var when the

mount_union(8) vs. open(O_RDWR)

2021-12-02 Thread Greg A. Woods
I've been experimenting with more complete install.img and cdrom ISOs, i.e. with complete tools and filesystems, and in doing so I've come up with (what I think is) a better way to expose and use a fully populated /var when the underlying disk media is read-only (which even install.img could be).