Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161350269
D9603.id25192.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D9603.id25192.diff
View Options
Index: sys/geom/part/g_part.c
===================================================================
--- sys/geom/part/g_part.c
+++ sys/geom/part/g_part.c
@@ -135,6 +135,10 @@
SYSCTL_UINT(_kern_geom_part, OID_AUTO, check_integrity,
CTLFLAG_RWTUN, &check_integrity, 1,
"Enable integrity checking");
+static u_int auto_resize = 1;
+SYSCTL_UINT(_kern_geom_part, OID_AUTO, auto_resize,
+ CTLFLAG_RW, &auto_resize, 1,
+ "Enable auto resize");
/*
* The GEOM partitioning class.
@@ -2095,6 +2099,9 @@
G_PART_TRACE((G_T_TOPOLOGY, "%s(%s)", __func__, cp->provider->name));
g_topology_assert();
+ if (auto_resize == 0)
+ return;
+
table = cp->geom->softc;
if (table->gpt_opened == 0) {
if (g_access(cp, 1, 1, 1) != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 1:49 AM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34645621
Default Alt Text
D9603.id25192.diff (741 B)
Attached To
Mode
D9603: Add auto resize sysctl.
Attached
Detach File
Event Timeline
Log In to Comment