Bug 440436

Summary: access into large isos (>4GB) is broken
Product: [Fedora] Fedora Reporter: Thomas Bittermann <fedora-bugzilla>
Component: fuseisoAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 20070708-4.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-17 03:53:41 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:
Attachments:
Description Flags
patch which fixes support for isos > 4GB none

Description Thomas Bittermann 2008-04-03 15:29:23 UTC
Description of problem:
Accessing content in isos larger than 4gb (mounted with fuseiso) does not work -
you can only access files in the are < 4gb.

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

How reproducible:

Steps to Reproduce:
1. fuseiso CentOS-5.1-x86_64-bin-DVD.iso /mnt/cdrom
2. rpm -qpi /mnt/cdrom/ypbind-1.19-8.el5.x86_64.rpm

Actual results:
fails with "... no rpm ..."

Expected results:
display rpm package information

Additional info:
Checked the isos md5 and sha1 sum - were ok, checked the access into the iso
while mounted as loop device - worked fine.

The problem is in isofs.h:
typedef struct _isofs_context {
...
size_t block_size; // raw block size
size_t block_offset; // offset from block start ...
size_t data_size; // data size inside block
...
}

size_t is simply "too small".

The appended patch worked for me on RHEL4u6 and Fedora 8.

Greetings
Thomas

Comment 1 Thomas Bittermann 2008-04-03 15:29:23 UTC
Created attachment 300266 [details]
patch which fixes support for isos > 4GB

Comment 2 Thomas Bittermann 2008-04-03 15:30:37 UTC
I also sent the patch to upstream ...

Comment 3 Tom "spot" Callaway 2008-04-03 15:36:59 UTC
This is obviously correct. I'll apply the patch and push updates.

Thanks for the patch.

Comment 4 Fedora Update System 2008-04-03 18:12:09 UTC
fuseiso-20070708-4.fc7 has been submitted as an update for Fedora 7

Comment 5 Fedora Update System 2008-04-03 18:12:54 UTC
fuseiso-20070708-4.fc8 has been submitted as an update for Fedora 8

Comment 6 Fedora Update System 2008-04-09 05:15:20 UTC
fuseiso-20070708-4.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fuseiso'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F7/FEDORA-2008-2930

Comment 7 Fedora Update System 2008-04-17 03:53:39 UTC
fuseiso-20070708-4.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2008-04-17 03:53:57 UTC
fuseiso-20070708-4.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.