From 034856d52d23db4e329953f9086e8909aa5402aa Mon Sep 17 00:00:00 2001 From: Sean Klein Date: Tue, 19 Nov 2024 16:42:09 -0800 Subject: [PATCH] Use test-configured mountpoint root for datasets --- sled-storage/src/manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sled-storage/src/manager.rs b/sled-storage/src/manager.rs index 69e0824356..62f5834209 100644 --- a/sled-storage/src/manager.rs +++ b/sled-storage/src/manager.rs @@ -955,8 +955,8 @@ impl StorageManager { err: None, }; - let mountpoint_path = - config.name.mountpoint(ZPOOL_MOUNTPOINT_ROOT.into()); + let mountpoint_root = &self.resources.disks().mount_config().root; + let mountpoint_path = config.name.mountpoint(mountpoint_root); let details = DatasetCreationDetails { zoned: config.name.dataset().zoned(), mountpoint: Mountpoint::Path(mountpoint_path),