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 198361 Details for
Bug 290951
-todisk script can't mount partition
[?]
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]
bug fix patch
0001-libblkid-FAT-magic-is-not-on-strict-position-when-t.patch (text/plain), 2.34 KB, created by
Karel Zak
on 2007-09-18 13:39:17 UTC
(
hide
)
Description:
bug fix patch
Filename:
MIME Type:
Creator:
Karel Zak
Created:
2007-09-18 13:39:17 UTC
Size:
2.34 KB
patch
obsolete
>From 3a493033ce3867a2561d60c1016dd0c03999e5eb Mon Sep 17 00:00:00 2001 >From: Karel Zak <kzak@redhat.com> >Date: Tue, 18 Sep 2007 15:29:59 +0200 >Subject: [PATCH] libblkid: FAT magic is not on strict position when there is a real MBR > >There is _optional_ reserved space before FAT: > > boot | reserved | FAT | FAT | root | data > sector | space | 1 | 2 | dir | region > >for more details see: > http://en.wikipedia.org/wiki/File_Allocation_Table > >The probe_fat() code already expects reserved space and other optional >junk in MBR+FAT, but the blkid_magic array expects strictly defined >positions of FAT magic strings. That's correct for 99% partitions, but >not for situation when on the same partition is real MBR. We need to check >for FAT filesystem also when we detect MBR signature (0x55AA on address 510). > >The blkid is not able to detect vfat on USB Disks where is only one >bootable partition with vfat, for example: > > # file -s /dev/sdc1 > /dev/sdc1: x86 boot sector; GRand Unified Bootloader, stage1 version > 0x3, 1st sector stage2 0x44ae, code offset 0x48, sectors/cluster 8, > Media descriptor 0xf8, heads 4, sectors 3901408 (volumes > 32 MB) , > physical drive 0xdb, physical drive 0x5b, reserved 0xe, dos < 4.0 > BootSector (0x0) > > # vol_id /dev/sdc1 > ID_FS_USAGE=filesystem > ID_FS_TYPE=vfat > ID_FS_VERSION=FAT32 > ID_FS_UUID=0044-AE80 > ID_FS_UUID_ENC=0044-AE80 > ID_FS_LABEL=Mdv_Flash > ID_FS_LABEL_ENC=Mdv_Flash > ID_FS_LABEL_SAFE=Mdv_Flash > >old version: > # blkid /dev/sdc1 > >fixed version: > # blkid /dev/sdc1 > /dev/sdc1: LABEL="MDV_FLASH" UUID="0044-AE80" TYPE="vfat" > >Signed-off-by: Karel Zak <kzak@redhat.com> >--- > lib/blkid/probe.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c >index d56292e..42ec234 100644 >--- a/lib/blkid/probe.c >+++ b/lib/blkid/probe.c >@@ -849,6 +849,7 @@ static struct blkid_magic type_array[] = { > { "vfat", 0, 0x36, 8, "FAT12 ", probe_fat }, > { "vfat", 0, 0, 2, "\353\220", probe_fat_nomagic }, > { "vfat", 0, 0, 1, "\351", probe_fat_nomagic }, >+ { "vfat", 0, 0x1fe, 2, "\125\252", probe_fat }, > { "minix", 1, 0x10, 2, "\177\023", 0 }, > { "minix", 1, 0x10, 2, "\217\023", 0 }, > { "minix", 1, 0x10, 2, "\150\044", 0 }, >-- >1.5.2.4 >
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 290951
: 198361