Bug 541708 - libblkid does not recognize ufs partitions
Summary: libblkid does not recognize ufs partitions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 19:32 UTC by Praveen Arimbrathodiyil
Modified: 2013-06-17 04:07 UTC (History)
4 users (show)

Fixed In Version: 2.16-10.3.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-01 04:42:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Praveen Arimbrathodiyil 2009-11-26 19:32:08 UTC
Description of problem:

Ref https://bugzilla.redhat.com/show_bug.cgi?id=541618#c5

"We also have a command 'vfs-type' which is *supposed* to return
something like 'ufs'.  Unfortunately it doesn't seem to work for
these UFS partitions, which is possibly a bug in Fedora libblkid. 
Version-Release number of selected component (if applicable):"


How reproducible:


Steps to Reproduce:
1. Refer bug 541618
2.
3.
  
Actual results:

vfs-type command does not recognize ufs partitions

Expected results:

recognize ufs partitions

Additional info:
libblkid is not listed in components, so this is the closest.

Comment 1 Richard W.M. Jones 2009-11-26 19:47:05 UTC
The particular command we are running is:

 /sbin/blkid -o value -s TYPE /dev/sda1

where /dev/sda1 is the ufs partition.  There's no error message,
it just returns an error code:

 # /sbin/blkid -o value -s TYPE /dev/sda1
 # echo $?
 2

  RETURN CODE
       If the specified token was found, or if any tags were shown from (spec-
       ified) devices, 0 is returned.  If the specified token was  not  found,
       or  no  (specified)  devices  could be identified, an exit code of 2 is
       returned.  For usage or other errors, an exit code of 4 is returned.

Comment 2 Richard W.M. Jones 2009-11-26 19:47:55 UTC
Component was wrong - should be util-linux-ng
according to:

$ rpm -qf /sbin/blkid 
util-linux-ng-2.16-10.2.fc12.x86_64

Comment 3 Karel Zak 2009-11-26 23:06:42 UTC
The problem was unpacked UFS superblock in libblkid, fixed in upstream repository:

http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=e7fee5520542fcfc6375e4ec1ffc1601971c937c

I'm going to fix it in F-12 ASAP. Thanks for your bug report!

Comment 4 Richard W.M. Jones 2009-11-26 23:23:12 UTC
Excellent, thanks for fixing it so quickly!

Comment 5 Richard W.M. Jones 2009-11-27 09:49:00 UTC
Confirmed that this fixes the problem.

Comment 6 Fedora Update System 2009-11-30 11:38:57 UTC
util-linux-ng-2.16-10.3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/util-linux-ng-2.16-10.3.fc12

Comment 7 Fedora Update System 2009-12-01 04:42:10 UTC
util-linux-ng-2.16-10.3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.