Bug 254282 - 13.0-RC2: NFS export from nullfs mount doesn't work any more
Summary: 13.0-RC2: NFS export from nullfs mount doesn't work any more
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-03-14 17:25 UTC by Felix Palmen
Modified: 2021-04-05 10:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen 2021-03-14 17:25:55 UTC
I have the following nullfs mounts:

/var/jail/builder/src	/usr/src	nullfs	ro,late		0	0
/var/jail/builder/obj	/usr/obj	nullfs	ro,late		0	0

/var/jail/builder/src and /var/jail/builder/obj are ZFS datasets.

Exporting them like this:

/usr/src	-maproot=root	-network=192.168.0.0/16 -ro
/usr/obj	-maproot=root	-network=192.168.0.0/16 -ro

worked fine on any 11.x and 12.x version. It stopped working after upgrade to 13.0-RC2, giving these errors:

mountd[13382]: can't change attributes for /usr/src: netcred already exists for given addr/mask
mountd[13382]: bad exports list line '/usr/src   -maproot'

Workaround for now is to directly export the datasets instead.