Skip to content

Commit

Permalink
loader: GELI encrypted disk should still use device name disk
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Toomas Soome authored and Toomas Soome committed Jun 20, 2022
1 parent 9acb1d7 commit e417249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stand/libsa/geli/gelidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e417249

Please sign in to comment.