g_part_gpt.c (88007f61) g_part_gpt.c (cb08c2cc)
1/*-
2 * Copyright (c) 2002, 2005, 2006, 2007 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

36#include <sys/kobj.h>
37#include <sys/limits.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/mutex.h>
41#include <sys/queue.h>
42#include <sys/sbuf.h>
43#include <sys/systm.h>
1/*-
2 * Copyright (c) 2002, 2005, 2006, 2007 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

36#include <sys/kobj.h>
37#include <sys/limits.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/mutex.h>
41#include <sys/queue.h>
42#include <sys/sbuf.h>
43#include <sys/systm.h>
44#include <sys/sysctl.h>
44#include <sys/uuid.h>
45#include <geom/geom.h>
46#include <geom/part/g_part.h>
47
48#include "g_part_if.h"
49
45#include <sys/uuid.h>
46#include <geom/geom.h>
47#include <geom/part/g_part.h>
48
49#include "g_part_if.h"
50
51FEATURE(geom_part_gpt, "GEOM partitioning class for GPT partitions support");
52
50CTASSERT(offsetof(struct gpt_hdr, padding) == 92);
51CTASSERT(sizeof(struct gpt_ent) == 128);
52
53#define EQUUID(a,b) (memcmp(a, b, sizeof(struct uuid)) == 0)
54
55#define MBRSIZE 512
56
57enum gpt_elt {

--- 1092 unchanged lines hidden ---
53CTASSERT(offsetof(struct gpt_hdr, padding) == 92);
54CTASSERT(sizeof(struct gpt_ent) == 128);
55
56#define EQUUID(a,b) (memcmp(a, b, sizeof(struct uuid)) == 0)
57
58#define MBRSIZE 512
59
60enum gpt_elt {

--- 1092 unchanged lines hidden ---