Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144456887
D27556.1774704269.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
D27556.1774704269.diff
View Options
Index: sbin/geom/core/geom.c
===================================================================
--- sbin/geom/core/geom.c
+++ 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
Sat, Mar 28, 1:24 PM (1 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28218303
Default Alt Text
D27556.1774704269.diff (587 B)
Attached To
Mode
D27556: geom(8): list geoms with /dev/ prefix
Attached
Detach File
Event Timeline
Log In to Comment