git: 03f3dc3189e5 - main - libsa/zfs: don't hardcode root vdev name, use the real pool name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Jul 2025 03:20:35 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=03f3dc3189e5abe4d4a56269c107119cc4a07388
commit 03f3dc3189e5abe4d4a56269c107119cc4a07388
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-07-11 03:07:39 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-07-11 03:07:39 +0000
libsa/zfs: don't hardcode root vdev name, use the real pool name
---
stand/libsa/zfs/zfsimpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
index a3ce003782f8..058907b1d822 100644
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -1379,7 +1379,7 @@ spa_create(uint64_t guid, const char *name)
free(spa);
return (NULL);
}
- spa->spa_root_vdev->v_name = strdup("root");
+ spa->spa_root_vdev->v_name = spa->spa_name;
STAILQ_INSERT_TAIL(&zfs_pools, spa, spa_link);
return (spa);