git: e417249016ef - main - loader: GELI encrypted disk should still use device name disk
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Jun 2022 07:10:32 UTC
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=e417249016efcca73c9edad21b94b1315bc44601
commit e417249016efcca73c9edad21b94b1315bc44601
Author: Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2022-06-20 06:51:44 +0000
Commit: Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2022-06-20 07:10:14 +0000
loader: GELI encrypted disk should still use device name disk
geli_probe_and_attach() does pick geli_devsw structure for
encrypted disks, the implementation depends on device
name "disk" when device type is DEVT_DISK, but geli_devsw is
setting name field "gelidisk".
PR: 264282
Submitted by: yamagi@yamagi.org
Reported by: yamagi@yamagi.org
MFC after: 2 weeks
---
stand/libsa/geli/gelidev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stand/libsa/geli/gelidev.c b/stand/libsa/geli/gelidev.c
index e1444c9b7fcd..d312d7b17e0e 100644
--- a/stand/libsa/geli/gelidev.c
+++ b/stand/libsa/geli/gelidev.c
@@ -53,7 +53,7 @@ static void geli_dev_cleanup(void);
* geli_devdesc, effectively routing all IO operations through our code.
*/
static struct devsw geli_devsw = {
- .dv_name = "gelidisk",
+ .dv_name = "disk",
.dv_type = DEVT_DISK,
.dv_init = geli_dev_init,
.dv_strategy = geli_dev_strategy,