/linux-4.4.14/drivers/staging/lustre/lustre/lov/ |
D | lov_pack.c | 60 POSTID(&oi), le32_to_cpu(lmm->lmm_magic), in lov_dump_lmm_common() 120 int lmm_size, lmm_magic; in lov_packmd() local 125 lmm_magic = lsm->lsm_magic; in lov_packmd() 128 lmm_magic = le32_to_cpu((*lmmp)->lmm_magic); in lov_packmd() 131 lmm_magic = LOV_MAGIC; in lov_packmd() 134 if ((lmm_magic != LOV_MAGIC_V1) && in lov_packmd() 135 (lmm_magic != LOV_MAGIC_V3)) { in lov_packmd() 137 lmm_magic, LOV_MAGIC_V1, LOV_MAGIC_V3); in lov_packmd() 146 stripe_count = lov_get_stripecnt(lov, lmm_magic, in lov_packmd() 160 lov->lov_ocd.ocd_max_easize, lmm_magic); in lov_packmd() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_user.h | 319 __u32 lmm_magic; /* magic number = LOV_USER_MAGIC_V1 */ member 334 __u32 lmm_magic; /* magic number = LOV_USER_MAGIC_V3 */ member 349 static inline __u32 lov_user_md_size(__u16 stripes, __u32 lmm_magic) in lov_user_md_size() argument 351 if (lmm_magic == LOV_USER_MAGIC_V3) in lov_user_md_size() 402 static inline int lmv_user_md_size(int stripes, int lmm_magic) in lmv_user_md_size() argument
|
D | lustre_idl.h | 1519 __u32 lmm_magic; /* magic number = LOV_MAGIC_V1 */ member 1614 __u32 lmm_magic; /* magic number = LOV_MAGIC_V3 */ member 1625 static inline __u32 lov_mds_md_size(__u16 stripes, __u32 lmm_magic) in lov_mds_md_size() argument 1627 if (lmm_magic == LOV_MAGIC_V3) in lov_mds_md_size() 1636 lov_mds_md_max_stripe_count(size_t buf_size, __u32 lmm_magic) in lov_mds_md_max_stripe_count() argument 1638 switch (lmm_magic) { in lov_mds_md_max_stripe_count()
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 702 switch (lump->lmm_magic) { in ll_dir_setstripe() 704 if (lump->lmm_magic != cpu_to_le32(LOV_USER_MAGIC_V1)) in ll_dir_setstripe() 710 if (lump->lmm_magic != cpu_to_le32(LOV_USER_MAGIC_V3)) in ll_dir_setstripe() 718 lump->lmm_magic, LOV_USER_MAGIC_V1, in ll_dir_setstripe() 732 if (lump != NULL && lump->lmm_magic == cpu_to_le32(LMV_USER_MAGIC)) in ll_dir_setstripe() 839 switch (le32_to_cpu(lmm->lmm_magic)) { in ll_dir_getstripe() 849 CERROR("unknown magic: %lX\n", (unsigned long)lmm->lmm_magic); in ll_dir_getstripe() 1383 if (lumv1->lmm_magic == LOV_USER_MAGIC_V3) { in ll_dir_ioctl() 1553 switch (lmm->lmm_magic) { in ll_dir_ioctl()
|
D | xattr.c | 245 int lum_size = (lump->lmm_magic == LOV_USER_MAGIC_V1) ? in ll_setxattr()
|
D | file.c | 1417 if ((lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V1)) && in ll_lov_getstripe_ea_info() 1418 (lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V3))) { in ll_lov_getstripe_ea_info() 1437 if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC_V1)) { in ll_lov_getstripe_ea_info() 1443 } else if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC_V3)) { in ll_lov_getstripe_ea_info() 1503 if (lumv1->lmm_magic == LOV_USER_MAGIC_V3) { in ll_lov_setstripe()
|
/linux-4.4.14/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 2552 if ((lum.lmm_magic != LOV_USER_MAGIC_V1) && in osc_getstripe() 2553 (lum.lmm_magic != LOV_USER_MAGIC_V3)) in osc_getstripe() 2564 lum_size = lov_mds_md_size(lum.lmm_stripe_count, lum.lmm_magic); in osc_getstripe() 2569 if (lum.lmm_magic == LOV_USER_MAGIC_V1) in osc_getstripe() 2576 lum_size = lov_mds_md_size(0, lum.lmm_magic); in osc_getstripe()
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | pack_generic.c | 1910 CDEBUG(D_OTHER, "\tlmm_magic: %#x\n", lum->lmm_magic); in print_lum() 1928 __swab32s(&lum->lmm_magic); in lustre_swab_lov_user_md_common() 1955 __swab32s(&lmm->lmm_magic); in lustre_swab_lov_mds_md()
|
D | wiretest.c | 1366 LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_magic) == 0, "found %lld\n", in lustre_assert_wire_constants() 1367 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_magic)); in lustre_assert_wire_constants() 1368 LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic) == 4, "found %lld\n", in lustre_assert_wire_constants() 1369 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic)); in lustre_assert_wire_constants() 1399 LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_magic) == 0, "found %lld\n", in lustre_assert_wire_constants() 1400 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_magic)); in lustre_assert_wire_constants() 1401 LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic) == 4, "found %lld\n", in lustre_assert_wire_constants() 1402 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic)); in lustre_assert_wire_constants()
|
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 327 lum->lmm_magic = LOV_USER_MAGIC_V1; in mdc_setattr_pack()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 645 (((*disk_tgt)->lmm_magic == LOV_MAGIC_V1) || in obd_free_diskmd() 646 ((*disk_tgt)->lmm_magic == LOV_MAGIC_V3))) in obd_free_diskmd()
|