FS#37154 - [util-linux] losetup does not accept offsets, that isn't 512*n byte

Attached to Project: Arch Linux
Opened by Dikiy (dikiy) - Monday, 30 September 2013, 23:52 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 01 October 2013, 14:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When I try to mount an image with a 32-byte offset

mount -o loop,offset=32 test.iso /var/tmp/mount_dir

I got

mount: test.iso: failed to setup loop device: Numerical result out of range

or with losetup:
losetup: test.iso: failed to set up loop device, offset is not 512-byte aligned.

Additional info: util-linux 2.32.2-1

Steps to reproduce:

sudo mount -o loop,offset=32 test.iso mount_dir
or
losetup -o 32 /dev/loop0 test.iso

But util-linux 2.20 seems to work.
This task depends upon

Closed by  Dave Reisner (falconindy)
Tuesday, 01 October 2013, 14:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed upstream for 2.24
Comment by Karel Zak (kzak) - Tuesday, 01 October 2013, 13:58 GMT
This is bug in extra check that we have in losetup code to detect non-synced loop devices. Fixed by upstream commit a7d5202b5e49b7e33336818e00d240b8badddbb7.

Loading...