/freebsd/sys/geom/multipath/ |
H A D | g_multipath.h | 60 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 D | g_multipath.c | 309 (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 D | g_label.h | 87 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 D | g_shsec.h | 64 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 D | g_concat.h | 82 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 D | g_concat.c | 589 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 D | g_stripe.h | 73 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 D | g_cache.h | 99 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 D | g_virstor_md.c | 46 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 D | g_virstor_md.h | 47 char md_magic[16]; /* Magic value. */ member
|
/freebsd/sys/geom/eli/ |
H A D | g_eli.h | 243 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 D | geom_cache.c | 145 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 D | subr.c | 51 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 D | geom_concat.c | 147 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 D | geom_label.c | 143 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 D | g_journal.h | 276 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 D | geom_shsec.c | 150 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 D | geom_stripe.c | 168 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 D | g_raid3.h | 254 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 D | g_mirror.h | 241 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 D | geom_multipath.c | 199 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in mp_label()
|
/freebsd/usr.sbin/fstyp/ |
H A D | geli.c | 60 if (strcmp(md.md_magic, G_ELI_MAGIC) == 0) { in fstyp_geli()
|
/freebsd/lib/geom/virstor/ |
H A D | geom_virstor.c | 180 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 D | geom_journal.c | 148 strlcpy(md.md_magic, G_JOURNAL_MAGIC, sizeof(md.md_magic)); in journal_label()
|
/freebsd/lib/geom/raid3/ |
H A D | geom_raid3.c | 162 strlcpy(md.md_magic, G_RAID3_MAGIC, sizeof(md.md_magic)); in raid3_label()
|