| /freebsd-13.1/sys/geom/multipath/ |
| H A D | g_multipath.h | 62 char md_magic[16]; /* Magic Value */ member 80 bcopy(md->md_magic, data, sizeof(md->md_magic)); in multipath_metadata_encode() 81 data += sizeof(md->md_magic); in multipath_metadata_encode() 98 bcopy(data, md->md_magic, sizeof(md->md_magic)); in multipath_metadata_decode() 99 data += sizeof(md->md_magic); in multipath_metadata_decode()
|
| H A D | g_multipath.c | 311 (strcmp(md.md_magic, G_MULTIPATH_MAGIC) != 0) || in g_multipath_resize() 325 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_resize() 844 if (strcmp(md.md_magic, G_MULTIPATH_MAGIC) != 0) { in g_multipath_taste() 1140 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_ctl_create() 1207 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in g_multipath_ctl_configure()
|
| /freebsd-13.1/sys/geom/label/ |
| H A D | g_label.h | 89 char md_magic[16]; /* Magic value. */ member 98 bcopy(md->md_magic, data, sizeof(md->md_magic)); in label_metadata_encode() 107 bcopy(data, md->md_magic, sizeof(md->md_magic)); in label_metadata_decode()
|
| /freebsd-13.1/sys/geom/shsec/ |
| H A D | g_shsec.h | 66 char md_magic[16]; /* Magic value. */ member 79 bcopy(md->md_magic, data, sizeof(md->md_magic)); in shsec_metadata_encode() 92 bcopy(data, md->md_magic, sizeof(md->md_magic)); in shsec_metadata_decode()
|
| /freebsd-13.1/sys/geom/stripe/ |
| H A D | g_stripe.h | 72 char md_magic[16]; /* Magic value. */ member 86 bcopy(md->md_magic, data, sizeof(md->md_magic)); in stripe_metadata_encode() 100 bcopy(data, md->md_magic, sizeof(md->md_magic)); in stripe_metadata_decode()
|
| /freebsd-13.1/sys/geom/concat/ |
| H A D | g_concat.h | 80 char md_magic[16]; /* Magic value. */ member 93 bcopy(md->md_magic, data, sizeof(md->md_magic)); in concat_metadata_encode() 106 bcopy(data, md->md_magic, sizeof(md->md_magic)); in concat_metadata_decode()
|
| /freebsd-13.1/sys/geom/cache/ |
| H A D | g_cache.h | 101 char md_magic[16]; /* Magic value. */ member 113 bcopy(md->md_magic, data, sizeof(md->md_magic)); in cache_metadata_encode() 125 bcopy(data, md->md_magic, sizeof(md->md_magic)); in cache_metadata_decode()
|
| H A D | g_cache.c | 687 if (strcmp(md.md_magic, G_CACHE_MAGIC) != 0) in g_cache_taste() 727 strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); in g_cache_ctl_create() 831 strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); in g_cache_ctl_configure()
|
| /freebsd-13.1/sys/geom/virstor/ |
| H A D | g_virstor_md.c | 49 bs_write_buf(&bs, md->md_magic, sizeof(md->md_magic)); in virstor_metadata_encode() 77 bs_read_buf(&bs, md->md_magic, sizeof(md->md_magic)); in virstor_metadata_decode()
|
| H A D | g_virstor_md.h | 49 char md_magic[16]; /* Magic value. */ member
|
| /freebsd-13.1/sys/geom/eli/ |
| H A D | g_eli.h | 237 char md_magic[16]; /* Magic value. */ member 296 bcopy(md->md_magic, p, sizeof(md->md_magic)); in eli_metadata_encode() 297 p += sizeof(md->md_magic); in eli_metadata_encode() 334 p = data + sizeof(md->md_magic) + sizeof(md->md_version); in eli_metadata_decode_v0() 360 p = data + sizeof(md->md_magic) + sizeof(md->md_version); in eli_metadata_decode_v1v2v3v4v5v6v7() 384 bcopy(data, md->md_magic, sizeof(md->md_magic)); in eli_metadata_decode() 385 if (strcmp(md->md_magic, G_ELI_MAGIC) != 0) in eli_metadata_decode() 387 md->md_version = le32dec(data + sizeof(md->md_magic)); in eli_metadata_decode() 481 printf(" magic: %s\n", md->md_magic); in eli_metadata_dump()
|
| /freebsd-13.1/lib/geom/cache/ |
| H A D | geom_cache.c | 147 strlcpy(md.md_magic, G_CACHE_MAGIC, sizeof(md.md_magic)); in cache_label() 206 printf(" Magic string: %s\n", md->md_magic); in cache_metadata_dump()
|
| /freebsd-13.1/sbin/geom/misc/ |
| H A D | subr.c | 54 char md_magic[16]; member 62 bcopy(data, md->md_magic, sizeof(md->md_magic)); in std_metadata_decode() 263 if (strcmp(stdmd.md_magic, magic) != 0) { in g_metadata_read() 365 if (strcmp(md.md_magic, magic) != 0) { in g_metadata_clear()
|
| /freebsd-13.1/lib/geom/concat/ |
| H A D | geom_concat.c | 143 strlcpy(md.md_magic, G_CONCAT_MAGIC, sizeof(md.md_magic)); in concat_label() 213 printf(" Magic string: %s\n", md->md_magic); in concat_metadata_dump()
|
| /freebsd-13.1/lib/geom/label/ |
| H A D | geom_label.c | 146 strlcpy(md.md_magic, G_LABEL_MAGIC, sizeof(md.md_magic)); in label_label() 202 printf(" Magic string: %s\n", md->md_magic); in label_metadata_dump()
|
| /freebsd-13.1/sys/geom/journal/ |
| H A D | g_journal.h | 278 char md_magic[16]; /* Magic value. */ member 296 bcopy(md->md_magic, data, 16); in journal_metadata_encode() 338 bcopy(data, md->md_magic, 16); in journal_metadata_decode() 358 printf(" magic: %s\n", md->md_magic); in journal_metadata_dump()
|
| /freebsd-13.1/lib/geom/shsec/ |
| H A D | geom_shsec.c | 153 strlcpy(md.md_magic, G_SHSEC_MAGIC, sizeof(md.md_magic)); in shsec_label() 225 printf(" Magic string: %s\n", md->md_magic); in shsec_metadata_dump()
|
| /freebsd-13.1/lib/geom/stripe/ |
| H A D | geom_stripe.c | 171 strlcpy(md.md_magic, G_STRIPE_MAGIC, sizeof(md.md_magic)); in stripe_label() 250 printf(" Magic string: %s\n", md->md_magic); in stripe_metadata_dump()
|
| /freebsd-13.1/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-13.1/sys/geom/mirror/ |
| H A D | g_mirror.h | 242 char md_magic[16]; /* Magic value. */ member 268 bcopy(md->md_magic, data, 16); in mirror_metadata_encode() 389 bcopy(data, md->md_magic, 16); in mirror_metadata_decode() 454 printf(" magic: %s\n", md->md_magic); in mirror_metadata_dump()
|
| /freebsd-13.1/lib/geom/multipath/ |
| H A D | geom_multipath.c | 201 strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic)); in mp_label()
|
| /freebsd-13.1/usr.sbin/fstyp/ |
| H A D | geli.c | 62 if (strcmp(md.md_magic, G_ELI_MAGIC) == 0) { in fstyp_geli()
|
| /freebsd-13.1/lib/geom/virstor/ |
| H A D | geom_virstor.c | 184 strlcpy(md.md_magic, G_VIRSTOR_MAGIC, sizeof(md.md_magic)); in virstor_label() 479 printf(" Magic string: %s\n", md->md_magic); in virstor_metadata_dump()
|
| /freebsd-13.1/lib/geom/journal/ |
| H A D | geom_journal.c | 151 strlcpy(md.md_magic, G_JOURNAL_MAGIC, sizeof(md.md_magic)); in journal_label()
|
| /freebsd-13.1/lib/geom/raid3/ |
| H A D | geom_raid3.c | 165 strlcpy(md.md_magic, G_RAID3_MAGIC, sizeof(md.md_magic)); in raid3_label()
|