Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177660570
D52500.1794972290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
650 B
Referenced Files
None
Subscribers
None
D52500.1794972290.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 3:24 AM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41814047
Default Alt Text
D52500.1794972290.diff (650 B)
Attached To
Mode
D52500: stand: Try to parse vdisk correctly
Attached
Detach File
Event Timeline