FreeBSD Bugzilla – Attachment 152537 Details for
Bug 197309
ggatec broken since r238119 (ioctl(/dev/ggctl): Invalid argument)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Easy work arond to unbreak ggatec <-> ggated but break HAST
gate_ioctl.diff (text/plain), 837 bytes, created by
ota
on 2015-02-04 02:40:44 UTC
(
hide
)
Description:
Easy work arond to unbreak ggatec <-> ggated but break HAST
Filename:
MIME Type:
Creator:
ota
Created:
2015-02-04 02:40:44 UTC
Size:
837 bytes
patch
obsolete
>Index: sys/geom/gate/g_gate.c >=================================================================== >--- sys/geom/gate/g_gate.c (revision 277908) >+++ sys/geom/gate/g_gate.c (working copy) >@@ -438,7 +438,7 @@ > { > struct g_gate_softc *sc; > struct g_geom *gp; >- struct g_provider *pp, *ropp; >+ struct g_provider *pp, *ropp = NULL; > struct g_consumer *cp; > char name[NAME_MAX]; > int error = 0, unit; >@@ -516,6 +516,7 @@ > > g_topology_lock(); > >+#if 0 > if (ggio->gctl_readprov[0] == '\0') { > ropp = NULL; > } else { >@@ -538,6 +539,7 @@ > goto fail2; > } > } >+#endif > > gp = g_new_geomf(&g_gate_class, "%s", name); > gp->start = g_gate_start; >@@ -587,7 +589,9 @@ > fail3: > g_destroy_consumer(cp); > g_destroy_geom(gp); >+#if 0 > fail2: >+#endif > g_topology_unlock(); > mtx_lock(&g_gate_units_lock); > g_gate_units[sc->sc_unit] = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197309
: 152537 |
154318
|
155621