Home
last modified time | relevance | path

Searched refs:md_magic (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/sys/geom/multipath/
H A Dg_multipath.h60 char md_magic[16]; /* Magic Value */ member
78 bcopy(md->md_magic, data, sizeof(md->md_magic)); in multipath_metadata_encode()
79 data += sizeof(md->md_magic); in multipath_metadata_encode()
96 bcopy(data, md->md_magic, sizeof(md->md_magic)); in multipath_metadata_decode()
97 data += sizeof(md->md_magic); in multipath_metadata_decode()
H A Dg_multipath.c309 (strcmp(md.md_magic, G_MULTIPATH_MAGIC) != 0) || in g_multipath_resize()
323 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_resize()
841 if (strcmp(md.md_magic, G_MULTIPATH_MAGIC) != 0) { in g_multipath_taste()
1135 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_ctl_create()
1202 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_ctl_configure()
/freebsd/sys/geom/label/
H A Dg_label.h87 char md_magic[16]; /* Magic value. */ member
96 bcopy(md->md_magic, data, sizeof(md->md_magic)); in label_metadata_encode()
105 bcopy(data, md->md_magic, sizeof(md->md_magic)); in label_metadata_decode()
/freebsd/sys/geom/shsec/
H A Dg_shsec.h64 char md_magic[16]; /* Magic value. */ member
77 bcopy(md->md_magic, data, sizeof(md->md_magic)); in shsec_metadata_encode()
90 bcopy(data, md->md_magic, sizeof(md->md_magic)); in shsec_metadata_decode()
/freebsd/sys/geom/concat/
H A Dg_concat.h82 char md_magic[16]; /* Magic value. */ member
95 bcopy(md->md_magic, data, sizeof(md->md_magic)); in concat_metadata_encode()
108 bcopy(data, md->md_magic, sizeof(md->md_magic)); in concat_metadata_decode()
H A Dg_concat.c589 if (strcmp(md.md_magic, G_CONCAT_MAGIC) != 0 || in g_concat_add_disk()
772 if (strcmp(md.md_magic, G_CONCAT_MAGIC) != 0) in g_concat_taste()
867 strlcpy(md.md_magic, G_CONCAT_MAGIC, sizeof(md.md_magic)); in g_concat_ctl_create()
1019 strlcpy(md.md_magic, G_CONCAT_MAGIC, sizeof(md.md_magic)); in g_concat_write_metadata()
/freebsd/sys/geom/stripe/
H A Dg_stripe.h73 char md_magic[16]; /* Magic value. */
87 bcopy(md->md_magic, data, sizeof(md->md_magic)); in stripe_metadata_encode()
101 bcopy(data, md->md_magic, sizeof(md->md_magic)); in stripe_metadata_decode()
70 char md_magic[16]; /* Magic value. */ global() member
/freebsd/sys/geom/cache/
H A Dg_cache.h99 char md_magic[16]; /* Magic value. */ member
111 bcopy(md->md_magic, data, sizeof(md->md_magic)); in cache_metadata_encode()
123 bcopy(data, md->md_magic, sizeof(md->md_magic)); in cache_metadata_decode()
/freebsd/sys/geom/virstor/
H A Dg_virstor_md.c46 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic)); in virstor_metadata_encode()
74 bs_read_buf(&bs, md->md_magic, sizeof(md->md_magic)); in virstor_metadata_decode()
H A Dg_virstor_md.h47 char md_magic[16]; /* Magic value. */ member
/freebsd/sys/geom/eli/
H A Dg_eli.h243 char md_magic[16]; /* Magic value. */ member
302 bcopy(md->md_magic, p, sizeof(md->md_magic)); in eli_metadata_encode()
303 p += sizeof(md->md_magic); in eli_metadata_encode()
340 p = data + sizeof(md->md_magic) + sizeof(md->md_version); in eli_metadata_decode_v0()
366 p = data + sizeof(md->md_magic) + sizeof(md->md_version); in eli_metadata_decode_v1v2v3v4v5v6v7()
390 bcopy(data, md->md_magic, sizeof(md->md_magic)); in eli_metadata_decode()
391 if (strcmp(md->md_magic, G_ELI_MAGIC) != 0) in eli_metadata_decode()
393 md->md_version = le32dec(data + sizeof(md->md_magic)); in eli_metadata_decode()
487 printf(" magic: %s\n", md->md_magic); in eli_metadata_dump()
/freebsd/lib/geom/cache/
H A Dgeom_cache.c145 strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); in cache_label()
204 printf(" Magic string: %s\n", md->md_magic); in cache_metadata_dump()
/freebsd/sbin/geom/misc/
H A Dsubr.c51 char md_magic[16]; member
59 bcopy(data, md->md_magic, sizeof(md->md_magic)); in std_metadata_decode()
260 if (strcmp(stdmd.md_magic, magic) != 0) { in g_metadata_read()
362 if (strcmp(md.md_magic, magic) != 0) { in g_metadata_clear()
/freebsd/lib/geom/concat/
H A Dgeom_concat.c147 strlcpy(md.md_magic, G_CONCAT_MAGIC, sizeof(md.md_magic)); in concat_label()
217 printf(" Magic string: %s\n", md->md_magic); in concat_metadata_dump()
/freebsd/lib/geom/label/
H A Dgeom_label.c143 strlcpy(md.md_magic, G_LABEL_MAGIC, sizeof(md.md_magic)); in label_label()
199 printf(" Magic string: %s\n", md->md_magic); in label_metadata_dump()
/freebsd/sys/geom/journal/
H A Dg_journal.h276 char md_magic[16]; /* Magic value. */ member
294 bcopy(md->md_magic, data, 16); in journal_metadata_encode()
336 bcopy(data, md->md_magic, 16); in journal_metadata_decode()
356 printf(" magic: %s\n", md->md_magic); in journal_metadata_dump()
/freebsd/lib/geom/shsec/
H A Dgeom_shsec.c150 strlcpy(md.md_magic, G_SHSEC_MAGIC, sizeof(md.md_magic)); in shsec_label()
222 printf(" Magic string: %s\n", md->md_magic); in shsec_metadata_dump()
/freebsd/lib/geom/stripe/
H A Dgeom_stripe.c168 strlcpy(md.md_magic, G_STRIPE_MAGIC, sizeof(md.md_magic)); in stripe_label()
247 printf(" Magic string: %s\n", md->md_magic); in stripe_metadata_dump()
/freebsd/sys/geom/raid3/
H A Dg_raid3.h254 char md_magic[16]; /* Magic value. */ member
276 bcopy(md->md_magic, data, 16); in raid3_metadata_encode()
385 bcopy(data, md->md_magic, 16); in raid3_metadata_decode()
414 printf(" magic: %s\n", md->md_magic); in raid3_metadata_dump()
/freebsd/sys/geom/mirror/
H A Dg_mirror.h241 char md_magic[16]; /* Magic value. */ member
267 bcopy(md->md_magic, data, 16); in mirror_metadata_encode()
388 bcopy(data, md->md_magic, 16); in mirror_metadata_decode()
453 printf(" magic: %s\n", md->md_magic); in mirror_metadata_dump()
/freebsd/lib/geom/multipath/
H A Dgeom_multipath.c199 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in mp_label()
/freebsd/usr.sbin/fstyp/
H A Dgeli.c60 if (strcmp(md.md_magic, G_ELI_MAGIC) == 0) { in fstyp_geli()
/freebsd/lib/geom/virstor/
H A Dgeom_virstor.c180 strlcpy(md.md_magic, G_VIRSTOR_MAGIC, sizeof(md.md_magic)); in virstor_label()
490 printf(" Magic string: %s\n", md->md_magic); in virstor_metadata_dump()
/freebsd/lib/geom/journal/
H A Dgeom_journal.c148 strlcpy(md.md_magic, G_JOURNAL_MAGIC, sizeof(md.md_magic)); in journal_label()
/freebsd/lib/geom/raid3/
H A Dgeom_raid3.c162 strlcpy(md.md_magic, G_RAID3_MAGIC, sizeof(md.md_magic)); in raid3_label()

12