]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix remount when setting multiple properties.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 30 Jun 2023 15:36:43 +0000 (11:36 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Jul 2023 15:48:05 +0000 (08:48 -0700)
commit6e79bcd3569a24f3c1554b0ea28f124fb8f0ea23
tree87542f2c5ea12cb973fa6c0494155e7ed3683d49
parentef2156c66ed3fdf633fc3a2e13083d8b2793bfc1
Fix remount when setting multiple properties.

The previous code was checking zfs_is_namespace_prop() only for the
last property on the list.  If one was not "namespace", then remount
wasn't called.  To fix that move zfs_is_namespace_prop() inside the
loop and remount if at least one of properties was "namespace".

Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15000
lib/libzfs/libzfs_dataset.c