On 09/29/2016 03:28 AM, Petter Reinholdtsen wrote: > [Richard Laager] >> The *writing* is hard-coded to /etc/mtab, but if it doesn't exist, >> that's fine. ZFS just won't update /etc/mtab. > > Right. Perhaps better to use two defines, one MNTTAB_READ and one > MNTTAB_WRITE to make this more clear, instead of introducing the > /etc/mtab hardcoding?
Maybe. I had originally hoped to simply remove all the writing, but it seems that some distros still need that. The current hope is to replace the writing (and maybe reading) with libmount, but that's a bigger patch. Strictly speaking, I'm not sure it was necessary in the final patch to replace MNTTAB with hard-coded /etc/mtab, but I'd have to look at the whole thing again to be sure. -- Richard