Home
last modified time | relevance | path

Searched refs:lum (Results 1 – 10 of 10) sorted by relevance

/drivers/staging/lustre/lustre/lov/
Dlov_pack.c398 struct lov_user_md_v3 lum; in lov_getstripe() local
409 if (copy_from_user(&lum, lump, lum_size)) { in lov_getstripe()
412 } else if ((lum.lmm_magic != LOV_USER_MAGIC) && in lov_getstripe()
413 (lum.lmm_magic != LOV_USER_MAGIC_V3)) { in lov_getstripe()
418 if (lum.lmm_stripe_count && in lov_getstripe()
419 (lum.lmm_stripe_count < lsm->lsm_stripe_count)) { in lov_getstripe()
421 lum.lmm_stripe_count = lsm->lsm_stripe_count; in lov_getstripe()
422 rc = copy_to_user(lump, &lum, lum_size); in lov_getstripe()
434 CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3)); in lov_getstripe()
435 CLASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lmmk->lmm_objects[0])); in lov_getstripe()
[all …]
/drivers/staging/lustre/lustre/mdc/
Dmdc_lib.c310 struct lov_user_md *lum = NULL; in mdc_setattr_pack() local
325 lum = req_capsule_client_get(&req->rq_pill, &RMF_EADATA); in mdc_setattr_pack()
327 lum->lmm_magic = LOV_USER_MAGIC_V1; in mdc_setattr_pack()
328 lum->lmm_stripe_size = 0; in mdc_setattr_pack()
329 lum->lmm_stripe_count = 0; in mdc_setattr_pack()
330 lum->lmm_stripe_offset = (typeof(lum->lmm_stripe_offset))(-1); in mdc_setattr_pack()
332 memcpy(lum, ea, ealen); in mdc_setattr_pack()
/drivers/staging/lustre/lustre/ptlrpc/
Dpack_generic.c1907 static void print_lum(struct lov_user_md *lum) in print_lum() argument
1909 CDEBUG(D_OTHER, "lov_user_md %p:\n", lum); in print_lum()
1910 CDEBUG(D_OTHER, "\tlmm_magic: %#x\n", lum->lmm_magic); in print_lum()
1911 CDEBUG(D_OTHER, "\tlmm_pattern: %#x\n", lum->lmm_pattern); in print_lum()
1912 CDEBUG(D_OTHER, "\tlmm_object_id: %llu\n", lmm_oi_id(&lum->lmm_oi)); in print_lum()
1913 CDEBUG(D_OTHER, "\tlmm_object_gr: %llu\n", lmm_oi_seq(&lum->lmm_oi)); in print_lum()
1914 CDEBUG(D_OTHER, "\tlmm_stripe_size: %#x\n", lum->lmm_stripe_size); in print_lum()
1915 CDEBUG(D_OTHER, "\tlmm_stripe_count: %#x\n", lum->lmm_stripe_count); in print_lum()
1917 lum->lmm_stripe_offset); in print_lum()
1926 static void lustre_swab_lov_user_md_common(struct lov_user_md_v1 *lum) in lustre_swab_lov_user_md_common() argument
[all …]
/drivers/staging/lustre/lustre/llite/
Ddir.c1320 struct lmv_user_md *lum; in ll_dir_ioctl() local
1347 lum = (struct lmv_user_md *)data->ioc_inlbuf2; in ll_dir_ioctl()
1350 if (lum->lum_magic != LMV_USER_MAGIC || in ll_dir_ioctl()
1351 lumlen != sizeof(*lum)) { in ll_dir_ioctl()
1353 filename, lum->lum_magic, lumlen, -EFAULT); in ll_dir_ioctl()
1362 rc = ll_dir_setdirstripe(inode, lum, filename); in ll_dir_ioctl()
1398 struct lmv_user_md lum; in ll_dir_ioctl() local
1404 if (copy_from_user(&lum, lump, sizeof(struct lmv_user_md))) in ll_dir_ioctl()
1407 if (lum.lum_magic != LMV_MAGIC_V1) in ll_dir_ioctl()
1417 *tmp = lum; in ll_dir_ioctl()
[all …]
Dllite_internal.h733 int flags, struct lov_user_md *lum,
Dfile.c1337 int flags, struct lov_user_md *lum, int lum_size) in ll_lov_setstripe_ea_info() argument
1353 rc = ll_intent_file_open(dentry, lum, lum_size, &oit); in ll_lov_setstripe_ea_info()
/drivers/media/usb/gspca/
Dsonixb.c1364 int lum = sd->header[lum_offset] + in sd_pkt_scan() local
1374 if (lum == 0 && sd->prev_avg_lum != 0) { in sd_pkt_scan()
1375 lum = -1; in sd_pkt_scan()
1379 sd->prev_avg_lum = lum; in sd_pkt_scan()
1380 atomic_set(&sd->avg_lum, lum); in sd_pkt_scan()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c2539 struct lov_user_md_v3 lum, *lumk; in osc_getstripe() local
2549 if (copy_from_user(&lum, lump, lum_size)) in osc_getstripe()
2552 if ((lum.lmm_magic != LOV_USER_MAGIC_V1) && in osc_getstripe()
2553 (lum.lmm_magic != LOV_USER_MAGIC_V3)) in osc_getstripe()
2559 LASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lumk->lmm_objects[0])); in osc_getstripe()
2563 if (lum.lmm_stripe_count > 0) { 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()
2577 lumk = &lum; in osc_getstripe()
[all …]
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c1190 struct lmv_user_md *lum; in lmv_placement_policy() local
1192 lum = (struct lmv_user_md *)op_data->op_data; in lmv_placement_policy()
1193 if (lum->lum_type == LMV_STRIPE_TYPE && in lmv_placement_policy()
1194 lum->lum_stripe_offset != -1) { in lmv_placement_policy()
1195 if (lum->lum_stripe_offset >= lmv->desc.ld_tgt_count) { in lmv_placement_policy()
1198 lum->lum_stripe_offset, in lmv_placement_policy()
1202 *mds = lum->lum_stripe_offset; in lmv_placement_policy()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h3331 void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 *lum);
3332 void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 *lum);