Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148781651
D22193.id63795.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
D22193.id63795.diff
View Options
Index: sys/geom/part/g_part.h
===================================================================
--- sys/geom/part/g_part.h
+++ sys/geom/part/g_part.h
@@ -228,6 +228,8 @@
int g_part_modevent(module_t, int, struct g_part_scheme *);
+extern char g_part_separator[];
+
#define G_PART_SCHEME_DECLARE(name) \
static int name##_modevent(module_t mod, int tp, void *d) \
{ \
Index: sys/geom/part/g_part.c
===================================================================
--- sys/geom/part/g_part.c
+++ sys/geom/part/g_part.c
@@ -147,6 +147,10 @@
SYSCTL_UINT(_kern_geom_part, OID_AUTO, allow_nesting,
CTLFLAG_RWTUN, &allow_nesting, 0,
"Allow additional levels of nesting");
+char g_part_separator[MAXPATHLEN] = "";
+SYSCTL_STRING(_kern_geom_part, OID_AUTO, separator,
+ CTLFLAG_RDTUN, &g_part_separator, sizeof(g_part_separator),
+ "Partition name separator");
/*
* The GEOM partitioning class.
Index: sys/geom/part/g_part_if.m
===================================================================
--- sys/geom/part/g_part_if.m
+++ sys/geom/part/g_part_if.m
@@ -48,7 +48,7 @@
{
char buf[32];
- sbuf_printf(sb, "%s%s", pfx,
+ sbuf_printf(sb, "%s%s%s", pfx, g_part_separator,
G_PART_NAME(table, entry, buf, sizeof(buf)));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 4:56 AM (14 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30061773
Default Alt Text
D22193.id63795.diff (1 KB)
Attached To
Mode
D22193: Add kern.geom.part.separator.
Attached
Detach File
Event Timeline
Log In to Comment