From e417249016efcca73c9edad21b94b1315bc44601 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 20 Jun 2022 09:51:44 +0300 Subject: [PATCH] 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,