[Pkg-zfsonlinux-devel] Bug#839071: Bug#839071: Bug#839071: Patch for bug #839071

Richard Laager rlaager at wiktel.com
Thu Sep 29 08:24:53 UTC 2016


On 09/29/2016 03:17 AM, Petter Reinholdtsen wrote:
> Why do you hardcode /etc/mtab here?  I fail to understand how your patch
> is intended to work, and hope you can reduce my confusion.

All *reading* is hard-coded to /proc/self/mounts. This removes the
dependency on /etc/mtab.

Ubuntu is specifically concerned about a race on first boot of cloud
images where the /etc/mtab -> /proc/self/mounts has not been created in
time.

The *writing* is hard-coded to /etc/mtab, but if it doesn't exist,
that's fine. ZFS just won't update /etc/mtab.

-- 
Richard



More information about the Pkg-zfsonlinux-devel mailing list