Lines Matching defs:lv

349 				  pvseg->lvseg->lv->vg->cmd->dev_dir,
350 pvseg->lvseg->lv->vg->name,
351 pvseg->lvseg->lv->name);
458 void lvdisplay_colons(const struct logical_volume *lv)
462 inkernel = lv_info(lv->vg->cmd, lv, &info, 1, 0) && info.exists;
465 lv->vg->cmd->dev_dir,
466 lv->vg->name,
467 lv->name,
468 lv->vg->name,
469 (lv->status & (LVM_READ | LVM_WRITE)) >> 8, inkernel ? 1 : 0,
470 /* FIXME lv->lv_number, */
471 inkernel ? info.open_count : 0, lv->size, lv->le_count,
472 /* FIXME Add num allocated to struct! lv->lv_allocated_le, */
473 (lv->alloc == ALLOC_CONTIGUOUS ? 2 : 0), lv->read_ahead,
479 const struct logical_volume *lv,
489 if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid)))
492 inkernel = lv_info(cmd, lv, &info, 1, 1) && info.exists;
496 log_print("LV Name %s%s/%s", lv->vg->cmd->dev_dir,
497 lv->vg->name, lv->name);
498 log_print("VG Name %s", lv->vg->name);
503 (lv->status & LVM_WRITE) ? "read/write" : "read only");
505 if (lv_is_origin(lv)) {
508 dm_list_iterate_items_gen(snap_seg, &lv->snapshot_segs,
517 lv->vg->cmd->dev_dir, lv->vg->name,
522 } else if ((snap_seg = find_cow(lv))) {
532 lv->vg->cmd->dev_dir, lv->vg->name,
543 log_print("LV # %u", lv->lv_number + 1);
551 snap_seg ? snap_seg->origin->size : lv->size));
554 snap_seg ? snap_seg->origin->le_count : lv->le_count);
558 display_size(cmd, (uint64_t) lv->size));
559 log_print("COW-table LE %u", lv->le_count);
568 if (lv->status & MIRRORED) {
569 mirror_seg = first_seg(lv);
571 if (lv->status & CONVERTING)
575 log_print("Segments %u", dm_list_size(&lv->segments));
578 log_print("Stripe size %s", display_size(cmd, (uint64_t) lv->stripesize));
581 log_print("Allocation %s", get_alloc_string(lv->alloc));
582 if (lv->read_ahead == DM_READ_AHEAD_AUTO)
584 else if (lv->read_ahead == DM_READ_AHEAD_NONE)
587 log_print("Read ahead sectors %u", lv->read_ahead);
589 if (inkernel && lv->read_ahead != info.read_ahead)
592 if (lv->status & FIXED_MINOR) {
593 if (lv->major >= 0)
594 log_print("Persistent major %d", lv->major);
595 log_print("Persistent minor %d", lv->minor);
637 int lvdisplay_segments(const struct logical_volume *lv)
643 dm_list_iterate_items(seg, &lv->segments) {