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 621019 Details for
Bug 862095
liblvm2app: property "data_percent" returns -1 for thin volumes
[?]
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]
Patch to correctly return value of property "data_percent"
0001-liblvm2app-correctly-return-data_percent-property-fo.patch (text/plain), 979 bytes, created by
Tony Asleson
on 2012-10-03 16:49:04 UTC
(
hide
)
Description:
Patch to correctly return value of property "data_percent"
Filename:
MIME Type:
Creator:
Tony Asleson
Created:
2012-10-03 16:49:04 UTC
Size:
979 bytes
patch
obsolete
>From 8ffc4d57c9e138eda51cd978b3ad1580b536158e Mon Sep 17 00:00:00 2001 >From: Tony Asleson <tasleson@redhat.com> >Date: Wed, 3 Oct 2012 11:44:03 -0500 >Subject: [PATCH] liblvm2app: correctly return "data_percent" property for > thin volumes > >Signed-off-by: Tony Asleson <tasleson@redhat.com> >--- > lib/report/properties.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/lib/report/properties.c b/lib/report/properties.c >index d2eac5e..677781a 100644 >--- a/lib/report/properties.c >+++ b/lib/report/properties.c >@@ -104,7 +104,11 @@ static percent_t _data_percent(const struct logical_volume *lv) > { > percent_t perc; > >- return lv_thin_pool_percent(lv, 0, &perc) ? perc : PERCENT_INVALID; >+ if ( lv_is_thin_pool(lv) ) { >+ return lv_thin_pool_percent(lv, 0, &perc) ? perc : PERCENT_INVALID; >+ } else { >+ return lv_thin_percent(lv, 0, &perc) ? perc : PERCENT_INVALID; >+ } > } > > static percent_t _metadata_percent(const struct logical_volume *lv) >-- >1.7.11.4 >
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 862095
: 621019