Bug 177776

Summary: nash losetup fails on large files
Product: [Fedora] Fedora Reporter: Ed Swierk <eswierk>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-03 23:05:57 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:

Description Ed Swierk 2006-01-13 21:04:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051201 Fedora/1.5-1.1.fc4.nr Firefox/1.5

Description of problem:
I find it useful to be able to create a large loopback root filesystem.  Unfortunately nash losetup fails when attempting to create a loopback device for a file >= 2 GB in size.


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

How reproducible:
Always

Steps to Reproduce:
Example:

# dd if=/dev/zero of=testfile bs=1M seek=2048 count=0
# echo losetup /dev/loop0 testfile | /sbin/nash --force
(forcing normal run)
Red Hat nash version 4.2.15 starting
losetup: failed to open testfile: 27


Expected Results:  Running the same test with seek=2047 instead of 2048 works fine.

Additional info:

The util-linux losetup has no problem handling large files.