Bug 790728
Summary: | blkid ignores swap UUIDs if the first byte is a zero byte | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Mohua Li <moli> |
Component: | util-linux-ng | Assignee: | Karel Zak <kzak> |
Status: | CLOSED ERRATA | QA Contact: | Branislav Blaškovič <bblaskov> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | azelinka, bblaskov, leiwang, qguan, qwan, rjones, rvokal |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | util-linux-ng-2.17.2-12.8.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
blkid command ignores swap area UUIDs if the first byte is zero
Consequence:
the swap areas is not possible to address by UUIDs for example from /etc/fstab.
Fix:
libblkid has been fixed
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 10:22:47 UTC | Type: | --- |
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: | |||
Bug Blocks: | 836160, 840699 |
Description
Mohua Li
2012-02-15 09:35:20 UTC
could be reproduced by: # guestfish -N disk mkswap_U "0019036e-016a-4b2f-86e5-d379137983e2" "/dev/vda" : get-e2uuid "/dev/vda" it's happen when the UUID begin with '00'. also I can reproduce this with mkswap tool on host: # qemu-img create test.img 5G Formatting 'test.img', fmt=raw size=5368709120 # mkswap -f -U 0084e9f3-ef57-4da7-bc27-0e48ee8a0c14 test.img Setting up swapspace version 1, size = 5242876 KiB no label, UUID=0084e9f3-ef57-4da7-bc27-0e48ee8a0c14 # blkid -c /dev/null -o value -s UUID test.img # rpm -qf `which mkswap` util-linux-ng-2.17.2-12.4.el6.x86_64 But not sure whether this is a bug in util-linux-ng. This is actually a bug in blkid which was fixed upstream: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/4273 Libguestfs just uses mkswap (etc) from util-linux, so updating or fixing util-linux in RHEL should be sufficient to fix the bug in libguestfs. Because of this, I am reassigning the bug to util-linux-ng. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0517.html |