Deleted Added
full compact
geom_dump.c (249507) geom_dump.c (250868)
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 249507 2013-04-15 15:55:40Z ivoras $");
37__FBSDID("$FreeBSD: head/sys/geom/geom_dump.c 250868 2013-05-21 18:40:54Z jh $");
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>

--- 54 unchanged lines hidden (view full) ---

100 struct sbuf *sb;
101
102 KASSERT(flag != EV_CANCEL, ("g_confdot was cancelled"));
103 sb = p;
104 g_topology_assert();
105 sbuf_printf(sb, "digraph geom {\n");
106 LIST_FOREACH(mp, &g_classes, class)
107 g_confdot_class(sb, mp);
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>

--- 54 unchanged lines hidden (view full) ---

100 struct sbuf *sb;
101
102 KASSERT(flag != EV_CANCEL, ("g_confdot was cancelled"));
103 sb = p;
104 g_topology_assert();
105 sbuf_printf(sb, "digraph geom {\n");
106 LIST_FOREACH(mp, &g_classes, class)
107 g_confdot_class(sb, mp);
108 sbuf_printf(sb, "};\n");
108 sbuf_printf(sb, "}\n");
109 sbuf_finish(sb);
110}
111
112static void
113g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level)
114{
115 struct g_provider *pp;
116 struct g_consumer *cp;

--- 190 unchanged lines hidden ---
109 sbuf_finish(sb);
110}
111
112static void
113g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level)
114{
115 struct g_provider *pp;
116 struct g_consumer *cp;

--- 190 unchanged lines hidden ---