Red Hat Bugzilla – Bug 35898
losetup fails when file is > 2G
Last modified: 2007-04-18 12:32:39 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.
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.
Fixed in 2.11b-5