Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177986852
D27556.1795712827.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
602 B
Referenced Files
None
Subscribers
None
D27556.1795712827.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
Thu, Nov 26, 5:07 PM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42021281
Default Alt Text
D27556.1795712827.diff (602 B)
Attached To
Mode
D27556: geom(8): list geoms with /dev/ prefix
Attached
Detach File
Event Timeline