Date: Sun, 28 May 2023 10:57:09 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271692] zfs inherit always behaves as if the -S flag was given Message-ID: <bug-271692-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271692 Bug ID: 271692 Summary: zfs inherit always behaves as if the -S flag was given Product: Base System Version: 12.4-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Scenario: - FreeBSD 12.4 latest patches - The following commands have been issued: [0]# zfs get canmount coconut.3/12/usr/local.OLD NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD canmount off local [0]# zfs get mountpoint coconut.3/12/usr/local.OLD NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local.OLD local [0]# zfs inherit mountpoint coconut.3/12/usr/local.OLD [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local received [0]# zfs inherit mountpoint coconut.3/12/usr/local.OLD [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local received [0]# zfs set mountpoint=3D/usr/local.OLD coconut.3/12/usr/local.OLD [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local.OLD local [0]# zfs inherit mountpoint coconut.3/12/usr/local.OLD=20=20=20=20=20=20=20= =20=20=20=20 [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local received [0]# zfs inherit -S mountpoint coconut.3/12/usr/local.OLD [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local received [0]# zfs set mountpoint=3D/usr/local.OLD coconut.3/12/usr/local.OLD [0]# zfs get mountpoint coconut.3/12/usr/local.OLD=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr/local.OLD mountpoint /usr/local.OLD local [0]# zfs get mountpoint coconut.3/12/usr=20=20=20=20=20=20=20=20=20=20 NAME PROPERTY VALUE SOURCE coconut.3/12/usr mountpoint /usr inherited from coconut.3/12 [0]#=20 Result (see the scenario above): - The mountpoint of coconut.3/12/usr/local.OLD is never set to its inherited default of /usr/local.OLD, even if no -S flag is given to the "zfs inherit" command. In fact, "zfs inherit" behaves as if the -S flag is always specifi= ed. Expected result: - After "zfs inherit mountpoint coconut.3/12/usr/local.OLD", the mountpoint should be set to the parent's mountpoint plus the filesystem name, in this = case to /usr/local.OLD. See also https://forums.freebsd.org/threads/zfs-inherit-mountpoint-after-zfs-rename-= not-working.59965/ where the second post describes exactly the same issue. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271692-227>