diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2022-06-20 06:51:44 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2022-07-04 06:14:43 +0000 |
commit | 67f8b6d985dbc85682d6f8b2dd5117068c19ca59 (patch) | |
tree | c528d4203f29e12350aee835e6d64b2bb5c623a8 | |
parent | 2353343b3244d4cbc349b5d09dc652fc1d9f3c22 (diff) | |
download | src-67f8b6d985dbc85682d6f8b2dd5117068c19ca59.tar.gz src-67f8b6d985dbc85682d6f8b2dd5117068c19ca59.zip |
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
(cherry picked from commit e417249016efcca73c9edad21b94b1315bc44601)
-rw-r--r-- | stand/libsa/geli/gelidev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |