Bug 35898 - losetup fails when file is > 2G
losetup fails when file is > 2G
Product: Red Hat Linux
Classification: Retired
Component: mount (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-04-13 14:26 EDT by Paul Flinders
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-13 14:26:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Flinders 2001-04-13 14:26:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.3-ac4 i686)

Even with a kernel with large file support it is not possible
to set up loop devices on files which are > 2G.

The problem is simply that it does not use O_LARGEFILE
when opening the file.

Reproducible: Always
Steps to Reproduce:
1. install a kernel with largefile support
2. dd if=/dev/zero of=file bs=1024 count=4194304
3. losetup /dev/loop0 file

Actual Results:  The message "file: File too large" is printed.
Comment 1 Bernhard Rosenkraenzer 2001-05-17 15:29:06 EDT
Fixed in 2.11b-5

Note You need to log in before you can comment on or make changes to this bug.