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 269931 Details for
Bug 400321
blkid does not scan raw block device
[?]
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]
proposed change
scan (text/plain), 1.74 KB, created by
Eric Sandeen
on 2007-11-27 17:42:30 UTC
(
hide
)
Description:
proposed change
Filename:
MIME Type:
Creator:
Eric Sandeen
Created:
2007-11-27 17:42:30 UTC
Size:
1.74 KB
patch
obsolete
>Index: e2fsprogs-1.40.2/lib/blkid/devname.c >=================================================================== >--- e2fsprogs-1.40.2.orig/lib/blkid/devname.c >+++ e2fsprogs-1.40.2/lib/blkid/devname.c >@@ -490,10 +490,11 @@ static int probe_all(blkid_cache cache, > > DBG(DEBUG_DEVNAME, printf("read partition name %s\n", ptname)); > >- /* Skip whole disk devs unless they have no partitions >- * If we don't have a partition on this dev, also >+ /* Skip whole disk devs unless they have no partitions. >+ * If base name of device has changed, also > * check previous dev to see if it didn't have a partn. >- * heuristic: partition name ends in a digit. >+ * heuristic: partition name ends in a digit, & partition >+ * names contain whole device name as substring. > * > * Skip extended partitions. > * heuristic: size is 1 >@@ -502,6 +503,8 @@ static int probe_all(blkid_cache cache, > */ > > lens[which] = strlen(ptname); >+ >+ /* ends in a digit, clearly a partition, so check */ > if (isdigit(ptname[lens[which] - 1])) { > DBG(DEBUG_DEVNAME, > printf("partition dev %s, devno 0x%04X\n", >@@ -510,10 +513,15 @@ static int probe_all(blkid_cache cache, > if (sz > 1) > probe_one(cache, ptname, devs[which], 0, > only_if_new); >- lens[which] = 0; >- lens[last] = 0; >- } else if (lens[last] && strncmp(ptnames[last], ptname, >- lens[last])) { >+ lens[which] = 0; /* mark as checked */ >+ } >+ >+ /* >+ * If last was not checked because it looked like a whole-disk >+ * dev, and the device's base name has changed, >+ * check last as well. >+ */ >+ if (lens[last] && strncmp(ptnames[last], ptname, lens[last])) { > DBG(DEBUG_DEVNAME, > printf("whole dev %s, devno 0x%04X\n", > ptnames[last], (unsigned int) devs[last]));
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 400321
:
269391
| 269931