Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1583658

Summary: UDisks reports wrong thinpool size
Product: Red Hat Enterprise Linux 7 Reporter: xhe <xhe>
Component: udisks2Assignee: Vojtech Trefny <vtrefny>
Status: CLOSED NOTABUG QA Contact: xhe <xhe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.5CC: bmilar, desktop-qa-list, rhandlin, tpelka, vtrefny
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1534904
: 1583663 (view as bug list) Environment:
Last Closed: 2018-06-04 06:57:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1534904    
Bug Blocks: 1583663    

Comment 2 xhe@redhat.com 2018-05-29 12:36:53 UTC
I reopen current issue to Fedora. 
https://bugzilla.redhat.com/show_bug.cgi?id=1583663

Comment 4 xhe@redhat.com 2018-05-30 02:31:35 UTC
On the latest2.7.3-6, the two thinpool size are still NOT equal, filed this bug for it. 

Another issue: the unexpected 't' in front of 37748736 is confusion in busctl size here. Is it possible the 't' could be removed from the busctl output?

My Test Details:
----------------
# lsblk -b
NAME                        MAJ:MIN RM         SIZE RO TYPE MOUNTPOINT
loop0                         7:0    0   2097152000  0 loop 
└─loop0p1                   259:0    0    104857600  0 loop 
  ├─test-tpool_tmeta        253:3    0      4194304  0 lvm  
  │ └─test-tpool            253:5    0     33554432  0 lvm   <--- size
  └─test-tpool_tdata        253:4    0     33554432  0 lvm  
    └─test-tpool            253:5    0     33554432  0 lvm  

# busctl get-property org.freedesktop.UDisks2 /org/freedesktop/UDisks2/lvm/test/tpool org.freedesktop.UDisks2.LogicalVolume Size
t 37748736        <--- see here, it does NOT equal 33554432

# rpm -qa|grep udisks2
udisks2-2.7.3-6.el7.x86_64
udisks2-lvm2-2.7.3-6.el7.x86_64
libudisks2-2.7.3-6.el7.x86_64

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)

# uname -r
3.10.0-862.el7.x86_64

Comment 5 Vojtech Trefny 2018-06-04 06:57:32 UTC
UDisks reports size of the thinpools including the metadata size (API docs: http://storaged.org/doc/udisks2-api/latest/gdbus-org.freedesktop.UDisks2.LogicalVolume.html#gdbus-property-org-freedesktop-UDisks2-LogicalVolume.Size).

So for lsblk output you need to use size of both "test-tpool_tmeta" (4194304) and "test-tpool_tdata" (33554432).