Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144513027
D52500.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
650 B
Referenced Files
None
Subscribers
None
D52500.id.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
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)
Attached To
Mode
D52500: stand: Try to parse vdisk correctly
Attached
Detach File
Event Timeline
Log In to Comment