Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115872217
D27556.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D27556.diff
View Options
Index: head/sbin/geom/core/geom.c
===================================================================
--- head/sbin/geom/core/geom.c
+++ head/sbin/geom/core/geom.c
@@ -37,6 +37,7 @@
#include <ctype.h>
#include <err.h>
#include <errno.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -861,6 +862,9 @@
find_geom(struct gclass *classp, const char *name)
{
struct ggeom *gp;
+
+ if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0)
+ name += sizeof(_PATH_DEV) - 1;
LIST_FOREACH(gp, &classp->lg_geom, lg_geom) {
if (strcmp(gp->lg_name, name) == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 8:22 PM (16 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17864544
Default Alt Text
D27556.diff (602 B)
Attached To
Mode
D27556: geom(8): list geoms with /dev/ prefix
Attached
Detach File
Event Timeline
Log In to Comment