Bug 400321 - blkid does not scan raw block device
blkid does not scan raw block device
Product: Fedora
Classification: Fedora
Component: e2fsprogs (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Eric Sandeen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-11-26 18:53 EST by Anchor Systems Managed Hosting
Modified: 2008-02-15 21:12 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.40.4-1.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-15 21:12:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace of blkid (14.01 KB, text/plain)
2007-11-26 18:53 EST, Anchor Systems Managed Hosting
no flags Details
proposed change (1.74 KB, patch)
2007-11-27 12:42 EST, Eric Sandeen
no flags Details | Diff

  None (edit)
Description Anchor Systems Managed Hosting 2007-11-26 18:53:15 EST
Description of problem:
I have used dm-crypt with LUKS on an entire hard disc connected via an
external USB drive bay.

blkid does not attempt to identify the hard disc.

This worked fine in F7.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
# cat /proc/partitions 
major minor  #blocks  name

   8     0   78150744 sda
   8     1     104391 sda1
   8     2   78043770 sda2
   8    16  732574584 sdb
 253     0   10485760 dm-0
 253     1    2097152 dm-1

(sdb is a 750 GB hard disc used for backups with dm-crypt (LUKS).
# cryptsetup luksUUID /dev/sdb

# blkid -c /dev/null -t UUID=a3f9a41b-e3ab-4620-9d29-4e6e7f44b0a1
# blkid | grep sdb
# blkid | grep -i a3f9a41b-e3ab-4620-9d29-4e6e7f44b0a1

Actual results:
No joy :(

strace indicates that blkid does not attempt to even open /dev/sdb

Expected results:
For it to find the device.

Additional info:
Attached is the strace output of:
blkid -c /dev/null -t UUID=a3f9a41b-e3ab-4620-9d29-4e6e7f44b0a1
Comment 1 Anchor Systems Managed Hosting 2007-11-26 18:53:15 EST
Created attachment 269391 [details]
strace of blkid
Comment 2 Karel Zak 2007-11-26 19:26:11 EST
I know about this bug. I found the bug when I read libblkid code few weeks ago.
Sorry, forgot to fill BZ.

The problem is in devname.c, probe_all(); where is heuristic that doesn't work
correctly with unpartitioned disks when the disk is followed by another
device<n>. For example:


Comment 3 Eric Sandeen 2007-11-27 12:42:30 EST
Created attachment 269931 [details]
proposed change

I think this should address the issue... hopefully without breaking anything

Karel, care to give it a look-over, since you've recently read this code as
well?  With that much review I'll send it up to Ted.  :)

Comment 4 Karel Zak 2007-11-27 15:27:09 EST
Seems good. Go ahead ;-)
Comment 5 Eric Sandeen 2007-11-29 23:50:14 EST
Sent upstream:
Comment 6 Eric Sandeen 2007-12-17 12:23:01 EST
patch is upstream now, I'll get it to e2fsprogs for fedora soon

Comment 7 Fedora Update System 2008-02-15 21:12:08 EST
e2fsprogs-1.40.4-1.fc8 has been pushed to the Fedora 8 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.