geom_dump.c (222603) | geom_dump.c (249507) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 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 36#include <sys/cdefs.h> | 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 --- 20 unchanged lines hidden (view full) --- 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 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/geom/geom_dump.c 222603 2011-06-02 12:49:45Z ae $"); | 37__FBSDID("$FreeBSD: head/sys/geom/geom_dump.c 249507 2013-04-15 15:55:40Z ivoras $"); |
38 39#include <sys/param.h> 40#include <sys/sbuf.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> 43#include <machine/stdarg.h> 44 45#include <geom/geom.h> 46#include <geom/geom_int.h> | 38 39#include <sys/param.h> 40#include <sys/sbuf.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> 43#include <machine/stdarg.h> 44 45#include <geom/geom.h> 46#include <geom/geom_int.h> |
47#include <geom/geom_disk.h> |
|
47 48 49static void 50g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) 51{ 52 53 sbuf_printf(sb, "z%p [label=\"r%dw%de%d\"];\n", 54 cp, cp->acr, cp->acw, cp->ace); --- 86 unchanged lines hidden (view full) --- 141{ 142 struct g_class *mp; 143 struct sbuf *sb; 144 145 KASSERT(flag != EV_CANCEL, ("g_conftxt was cancelled")); 146 sb = p; 147 g_topology_assert(); 148 LIST_FOREACH(mp, &g_classes, class) { | 48 49 50static void 51g_confdot_consumer(struct sbuf *sb, struct g_consumer *cp) 52{ 53 54 sbuf_printf(sb, "z%p [label=\"r%dw%de%d\"];\n", 55 cp, cp->acr, cp->acw, cp->ace); --- 86 unchanged lines hidden (view full) --- 142{ 143 struct g_class *mp; 144 struct sbuf *sb; 145 146 KASSERT(flag != EV_CANCEL, ("g_conftxt was cancelled")); 147 sb = p; 148 g_topology_assert(); 149 LIST_FOREACH(mp, &g_classes, class) { |
149 if (!strcmp(mp->name, "DISK") || !strcmp(mp->name, "MD")) | 150 if (!strcmp(mp->name, G_DISK_CLASS_NAME) || !strcmp(mp->name, "MD")) |
150 g_conftxt_class(sb, mp); 151 } 152 sbuf_finish(sb); 153} 154 155 156static void 157g_conf_print_escaped(struct sbuf *sb, const char *fmt, const char *str) --- 148 unchanged lines hidden --- | 151 g_conftxt_class(sb, mp); 152 } 153 sbuf_finish(sb); 154} 155 156 157static void 158g_conf_print_escaped(struct sbuf *sb, const char *fmt, const char *str) --- 148 unchanged lines hidden --- |