Deleted Added
sdiff udiff text old ( 222603 ) new ( 249507 )
full compact
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 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>
47#include <geom/geom_disk.h>
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) {
150 if (!strcmp(mp->name, G_DISK_CLASS_NAME) || !strcmp(mp->name, "MD"))
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 ---