Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155323 Details for
Bug 149814
pvdisplay --maps makes no difference
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
adds the --maps feature
bz149814.patch (text/plain), 2.11 KB, created by
David Robinson
on 2007-05-24 09:00:02 UTC
(
hide
)
Description:
adds the --maps feature
Filename:
MIME Type:
Creator:
David Robinson
Created:
2007-05-24 09:00:02 UTC
Size:
2.11 KB
patch
obsolete
>diff -urp LVM2.orig/lib/display/display.c LVM2/lib/display/display.c >--- LVM2.orig/lib/display/display.c 2006-12-01 09:11:40.000000000 +1000 >+++ LVM2/lib/display/display.c 2007-05-24 18:45:13.000000000 +1000 >@@ -258,6 +258,32 @@ void pvdisplay_colons(struct physical_vo > return; > } > >+void pvdisplay_segments(struct physical_volume *pv) >+{ >+ struct pv_segment *seg; >+ >+ log_print("--- Segments ---"); >+ >+ list_iterate_items(seg, &pv->segments) { >+ if (seg->len == pv->pe_count) continue; >+ log_print("Physical extent %u to %u:", >+ seg->pe, seg->pe + seg->len - 1); >+ >+ if (seg->lvseg) { >+ log_print(" LV Name\t\t%s%s/%s", >+ seg->lvseg->lv->vg->cmd->dev_dir, >+ seg->lvseg->lv->vg->name, >+ seg->lvseg->lv->name); >+ log_print(" Logical extents\t%d to %d", >+ seg->lvseg->le, seg->lvseg->le + >+ seg->lvseg->len - 1); >+ } >+ } >+ >+ log_print(" "); >+ return; >+} >+ > /* FIXME Include label fields */ > void pvdisplay_full(struct cmd_context *cmd, struct physical_volume *pv, > void *handle __attribute((unused))) >diff -urp LVM2.orig/lib/display/display.h LVM2/lib/display/display.h >--- LVM2.orig/lib/display/display.h 2006-05-10 07:23:50.000000000 +1000 >+++ LVM2/lib/display/display.h 2007-05-24 18:45:13.000000000 +1000 >@@ -31,6 +31,7 @@ char *display_uuid(char *uuidstr); > void display_stripe(const struct lv_segment *seg, uint32_t s, const char *pre); > > void pvdisplay_colons(struct physical_volume *pv); >+void pvdisplay_segments(struct physical_volume *pv); > void pvdisplay_full(struct cmd_context *cmd, struct physical_volume *pv, > void *handle); > int pvdisplay_short(struct cmd_context *cmd, struct volume_group *vg, >diff -urp LVM2.orig/tools/pvdisplay.c LVM2/tools/pvdisplay.c >--- LVM2.orig/tools/pvdisplay.c 2006-10-17 02:29:40.000000000 +1000 >+++ LVM2/tools/pvdisplay.c 2007-05-24 18:45:13.000000000 +1000 >@@ -71,8 +71,8 @@ static int _pvdisplay_single(struct cmd_ > > pvdisplay_full(cmd, pv, handle); > >- if (!arg_count(cmd, maps_ARG)) >- goto out; >+ if (arg_count(cmd, maps_ARG)) >+ pvdisplay_segments(pv); > > out: > if (pv->vg_name)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 149814
: 155323