diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2022-06-20 06:51:44 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2022-06-20 07:10:14 +0000 |
commit | e417249016efcca73c9edad21b94b1315bc44601 (patch) | |
tree | 9ed66260532c1e4e68fdc922f79f70e5edeb1993 | |
parent | 9acb1d7b2c932c48c64345c589c0e0733c7918fd (diff) | |
download | src-e417249016efcca73c9edad21b94b1315bc44601.tar.gz src-e417249016efcca73c9edad21b94b1315bc44601.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
MFC after: 2 weeks
-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, |