Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112562856
D48538.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48538.diff
View Options
diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c
--- a/sbin/ffsinfo/ffsinfo.c
+++ b/sbin/ffsinfo/ffsinfo.c
@@ -186,27 +186,18 @@
* No path prefix was given, so try in this order:
* /dev/r%s
* /dev/%s
- * /dev/vinum/r%s
- * /dev/vinum/%s.
*
- * FreeBSD now doesn't distinguish between raw and block
+ * FreeBSD now doesn't distinguish between raw and block
* devices any longer, but it should still work this way.
*/
- len = strlen(device) + strlen(_PATH_DEV) + 2 + strlen("vinum/");
+ len = strlen(device) + strlen(_PATH_DEV) + 2;
special = (char *)malloc(len);
if (special == NULL)
errx(1, "malloc failed");
snprintf(special, len, "%sr%s", _PATH_DEV, device);
if (stat(special, &st) == -1) {
+ /* For now this is the 'last resort' */
snprintf(special, len, "%s%s", _PATH_DEV, device);
- if (stat(special, &st) == -1) {
- snprintf(special, len, "%svinum/r%s",
- _PATH_DEV, device);
- if (stat(special, &st) == -1)
- /* For now this is the 'last resort' */
- snprintf(special, len, "%svinum/%s",
- _PATH_DEV, device);
- }
}
device = special;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 9:18 PM (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16019945
Default Alt Text
D48538.diff (1 KB)
Attached To
Mode
D48538: ffsinfo: Remove support for vinum volumes
Attached
Detach File
Event Timeline
Log In to Comment