Page MenuHomeFreeBSD

D52500.id.diff
No OneTemporary

D52500.id.diff

diff --git a/stand/common/disk.c b/stand/common/disk.c
--- a/stand/common/disk.c
+++ b/stand/common/disk.c
@@ -417,7 +417,18 @@
char *cp;
struct disk_devdesc *dev;
- np = devspec + 4; /* Skip the leading 'disk' */
+ /*
+ * disk names look approximately like:
+ * v?disk([0-9]+(p[0-9]+|s[a-z])?)?:
+ * so skip over the initial bit. We don't have access to the devsw
+ * to check the name.
+ */
+ if (strncmp(devspec, "disk", 4) == 0)
+ np = devspec + 4;
+ else if (strncmp(devspec, "vdisk", 5) == 0)
+ np = devspec + 5;
+ else
+ return (EINVAL);
unit = -1;
/*
* If there is path/file info after the device info, then any missing

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 10, 1:18 AM (47 m, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25186971
Default Alt Text
D52500.id.diff (650 B)

Event Timeline