/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
D | lov_pack.c | 60 POSTID(&oi), le32_to_cpu(lmm->lmm_magic), in lov_dump_lmm_common() 107 magic = le32_to_cpu(((struct lov_mds_md *)lmm)->lmm_magic); in lov_dump_lmm() 140 int lmm_size, lmm_magic; in lov_packmd() local 145 lmm_magic = lsm->lsm_magic; in lov_packmd() 148 lmm_magic = le32_to_cpu((*lmmp)->lmm_magic); in lov_packmd() 151 lmm_magic = LOV_MAGIC; in lov_packmd() 154 if ((lmm_magic != LOV_MAGIC_V1) && in lov_packmd() 155 (lmm_magic != LOV_MAGIC_V3)) { in lov_packmd() 157 lmm_magic, LOV_MAGIC_V1, LOV_MAGIC_V3); in lov_packmd() 166 stripe_count = lov_get_stripecnt(lov, lmm_magic, in lov_packmd() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | obd.h | 192 if (lsm->lsm_magic != lum->lmm_magic) in lov_lum_lsm_cmp() 212 int *lmm_magic, in lov_lum_swab_if_needed() argument 218 *lmm_magic = lumv3->lmm_magic; in lov_lum_swab_if_needed() 220 if (*lmm_magic == __swab32(LOV_USER_MAGIC_V1)) { in lov_lum_swab_if_needed() 222 *lmm_magic = LOV_USER_MAGIC_V1; in lov_lum_swab_if_needed() 223 } else if (*lmm_magic == LOV_USER_MAGIC_V3) { in lov_lum_swab_if_needed() 226 } else if (*lmm_magic == __swab32(LOV_USER_MAGIC_V3)) { in lov_lum_swab_if_needed() 230 *lmm_magic = LOV_USER_MAGIC_V3; in lov_lum_swab_if_needed() 231 } else if (*lmm_magic != LOV_USER_MAGIC_V1) { in lov_lum_swab_if_needed() 234 *lmm_magic, LOV_USER_MAGIC_V1, LOV_USER_MAGIC_V3); in lov_lum_swab_if_needed()
|
D | obd_class.h | 742 (((*disk_tgt)->lmm_magic == LOV_MAGIC_V1) || in obd_free_diskmd() 743 ((*disk_tgt)->lmm_magic == LOV_MAGIC_V3))) in obd_free_diskmd()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_user.h | 321 __u32 lmm_magic; /* magic number = LOV_USER_MAGIC_V1 */ member 336 __u32 lmm_magic; /* magic number = LOV_USER_MAGIC_V3 */ member 351 static inline __u32 lov_user_md_size(__u16 stripes, __u32 lmm_magic) in lov_user_md_size() argument 353 if (lmm_magic == LOV_USER_MAGIC_V3) in lov_user_md_size() 404 static inline int lmv_user_md_size(int stripes, int lmm_magic) in lmv_user_md_size() argument
|
D | lustre_idl.h | 1513 __u32 lmm_magic; /* magic number = LOV_MAGIC_V1 */ member 1608 __u32 lmm_magic; /* magic number = LOV_MAGIC_V3 */ member 1619 static inline __u32 lov_mds_md_size(__u16 stripes, __u32 lmm_magic) in lov_mds_md_size() argument 1621 if (lmm_magic == LOV_MAGIC_V3) in lov_mds_md_size() 1630 lov_mds_md_max_stripe_count(size_t buf_size, __u32 lmm_magic) in lov_mds_md_max_stripe_count() argument 1632 switch (lmm_magic) { in lov_mds_md_max_stripe_count()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 706 switch (lump->lmm_magic) { in ll_dir_setstripe() 708 if (lump->lmm_magic != cpu_to_le32(LOV_USER_MAGIC_V1)) in ll_dir_setstripe() 714 if (lump->lmm_magic != cpu_to_le32(LOV_USER_MAGIC_V3)) in ll_dir_setstripe() 722 lump->lmm_magic, LOV_USER_MAGIC_V1, in ll_dir_setstripe() 736 if (lump != NULL && lump->lmm_magic == cpu_to_le32(LMV_USER_MAGIC)) in ll_dir_setstripe() 846 switch (le32_to_cpu(lmm->lmm_magic)) { in ll_dir_getstripe() 856 CERROR("unknown magic: %lX\n", (unsigned long)lmm->lmm_magic); in ll_dir_getstripe() 1387 if (lumv1->lmm_magic == LOV_USER_MAGIC_V3) { in ll_dir_ioctl() 1587 switch (lmm->lmm_magic) { in ll_dir_ioctl()
|
D | xattr.c | 247 int lum_size = (lump->lmm_magic == LOV_USER_MAGIC_V1) ? in ll_setxattr()
|
D | file.c | 1426 if ((lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V1)) && in ll_lov_getstripe_ea_info() 1427 (lmm->lmm_magic != cpu_to_le32(LOV_MAGIC_V3))) { in ll_lov_getstripe_ea_info() 1446 if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC_V1)) { in ll_lov_getstripe_ea_info() 1452 } else if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC_V3)) { in ll_lov_getstripe_ea_info() 1512 if (lumv1->lmm_magic == LOV_USER_MAGIC_V3) { in ll_lov_setstripe()
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 2607 if ((lum.lmm_magic != LOV_USER_MAGIC_V1) && in osc_getstripe() 2608 (lum.lmm_magic != LOV_USER_MAGIC_V3)) in osc_getstripe() 2619 lum_size = lov_mds_md_size(lum.lmm_stripe_count, lum.lmm_magic); in osc_getstripe() 2624 if (lum.lmm_magic == LOV_USER_MAGIC_V1) in osc_getstripe() 2631 lum_size = lov_mds_md_size(0, lum.lmm_magic); in osc_getstripe()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | wiretest.c | 1368 LASSERTF((int)offsetof(struct lov_mds_md_v1, lmm_magic) == 0, "found %lld\n", in lustre_assert_wire_constants() 1369 (long long)(int)offsetof(struct lov_mds_md_v1, lmm_magic)); in lustre_assert_wire_constants() 1370 LASSERTF((int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic) == 4, "found %lld\n", in lustre_assert_wire_constants() 1371 (long long)(int)sizeof(((struct lov_mds_md_v1 *)0)->lmm_magic)); in lustre_assert_wire_constants() 1401 LASSERTF((int)offsetof(struct lov_mds_md_v3, lmm_magic) == 0, "found %lld\n", in lustre_assert_wire_constants() 1402 (long long)(int)offsetof(struct lov_mds_md_v3, lmm_magic)); in lustre_assert_wire_constants() 1403 LASSERTF((int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic) == 4, "found %lld\n", in lustre_assert_wire_constants() 1404 (long long)(int)sizeof(((struct lov_mds_md_v3 *)0)->lmm_magic)); in lustre_assert_wire_constants()
|
D | pack_generic.c | 2113 CDEBUG(D_OTHER, "\tlmm_magic: %#x\n", lum->lmm_magic); in print_lum() 2131 __swab32s(&lum->lmm_magic); in lustre_swab_lov_user_md_common() 2158 __swab32s(&lmm->lmm_magic); in lustre_swab_lov_mds_md()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 362 lum->lmm_magic = LOV_USER_MAGIC_V1; in mdc_setattr_pack()
|