kboot: hostdisk add to lsdev output

Not entirely sure what to do here, so just list that we're here.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D36606
This commit is contained in:
Warner Losh 2022-10-07 23:46:20 -06:00
parent beba54e4b8
commit 6700f34d12

View File

@ -127,6 +127,12 @@ hostdisk_ioctl(struct open_file *f, u_long cmd, void *data)
static int
hostdisk_print(int verbose)
{
return (0);
}
char line[80];
printf("%s devices:", hostdisk.dv_name);
if (pager_output("\n") != 0)
return (1);
snprintf(line, sizeof(line), " /dev%d: Host disk\n", 0);
return (pager_output(line));
}