git: hammer2: fix HAMMER2IOC_RECLUSTER ioctl failing on local mounts
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed May 27 17:01:47 PDT 2026
commit c5cc81fefa166cc45657541c155797f0cff88c62
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date: Wed May 27 20:20:23 2026 +0000
hammer2: fix HAMMER2IOC_RECLUSTER ioctl failing on local mounts
iroot->cluster.focus is lazily set during I/O via hammer2_cluster_resolve
and is NULL at mount time, causing HAMMER2IOC_RECLUSTER to always fail with
EINVAL and log a misleading "not a local device mount" message.
Use cluster->focus->hmp when focus is set (priority), falling back to
array[0].chain->hmp for single-chain clusters where focus has not yet
been resolved. Remove the spurious diagnostic kprintfs.
Summary of changes:
sys/vfs/hammer2/hammer2_ioctl.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5cc81fefa166cc45657541c155797f0cff88c62
--
DragonFly BSD source repository
More information about the Commits
mailing list