geom_dump.c (93326) | geom_dump.c (93774) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/geom/geom_dump.c 93326 2002-03-28 10:09:24Z phk $ | 35 * $FreeBSD: head/sys/geom/geom_dump.c 93774 2002-04-04 09:41:47Z phk $ |
36 */ 37 38 39#include <sys/param.h> 40#include <sys/sbuf.h> 41#ifndef _KERNEL 42#include <stdio.h> 43#include <unistd.h> --- 59 unchanged lines hidden (view full) --- 103g_confdot(void) 104{ 105 struct g_class *mp; 106 struct sbuf *sb; 107 108 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); 109 sbuf_clear(sb); 110 sbuf_printf(sb, "digraph geom {\n"); | 36 */ 37 38 39#include <sys/param.h> 40#include <sys/sbuf.h> 41#ifndef _KERNEL 42#include <stdio.h> 43#include <unistd.h> --- 59 unchanged lines hidden (view full) --- 103g_confdot(void) 104{ 105 struct g_class *mp; 106 struct sbuf *sb; 107 108 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); 109 sbuf_clear(sb); 110 sbuf_printf(sb, "digraph geom {\n"); |
111 LIST_FOREACH(mp, &g_classs, class) | 111 LIST_FOREACH(mp, &g_classes, class) |
112 g_confdot_class(sb, mp); 113 sbuf_printf(sb, "};\n"); 114 sbuf_finish(sb); 115 return (sb); 116} 117 118 119static void --- 83 unchanged lines hidden (view full) --- 203g_conf_specific(struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) 204{ 205 struct g_class *mp2; 206 struct sbuf *sb; 207 208 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); 209 sbuf_clear(sb); 210 sbuf_printf(sb, "<mesh>\n"); | 112 g_confdot_class(sb, mp); 113 sbuf_printf(sb, "};\n"); 114 sbuf_finish(sb); 115 return (sb); 116} 117 118 119static void --- 83 unchanged lines hidden (view full) --- 203g_conf_specific(struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) 204{ 205 struct g_class *mp2; 206 struct sbuf *sb; 207 208 sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); 209 sbuf_clear(sb); 210 sbuf_printf(sb, "<mesh>\n"); |
211 LIST_FOREACH(mp2, &g_classs, class) { | 211 LIST_FOREACH(mp2, &g_classes, class) { |
212 if (mp != NULL && mp != mp2) 213 continue; 214 g_conf_class(sb, mp2, gp, pp, cp); 215 } 216 sbuf_printf(sb, "</mesh>\n"); 217 sbuf_finish(sb); 218 return (sb); 219} --- 57 unchanged lines hidden --- | 212 if (mp != NULL && mp != mp2) 213 continue; 214 g_conf_class(sb, mp2, gp, pp, cp); 215 } 216 sbuf_printf(sb, "</mesh>\n"); 217 sbuf_finish(sb); 218 return (sb); 219} --- 57 unchanged lines hidden --- |