FS#35193 - [util-linux] losetup offset option is broken

Attached to Project: Arch Linux
Opened by max (maxmbx) - Saturday, 11 May 2013, 05:01 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 03 July 2013, 11:57 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
losetup --offset=1GiB -f /dev/sdn does not work, although it works in util-linux-2.22.2-2
it gives message "losetup: /dev/sdn: failed to setup loop device: Success" and do nothing
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 03 July 2013, 11:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  util-linux 2.23.1

No reply from user who requested reopen.
Comment by Dave Reisner (falconindy) - Saturday, 11 May 2013, 15:49 GMT Comment by Dave Reisner (falconindy) - Saturday, 11 May 2013, 23:41 GMT
Just out of curiosity, what is your use case for mounting a block device with an offset?

I've sent this upstream, but I'm sure they'll want to know what you're using this for.
Comment by max (maxmbx) - Sunday, 12 May 2013, 02:21 GMT
I use it for flash drive, first part of flash drive is arch linux install image, and after 1GiB is luks+btrfs with files (settings, btrfs snapshot backups and other important stuff), when new install image released, just do 'dd image' to the first sectors, and my files remain untouched.
Comment by Dave Reisner (falconindy) - Monday, 13 May 2013, 13:19 GMT Comment by max (maxmbx) - Monday, 13 May 2013, 14:01 GMT
It works now, thank you very much!
Comment by Dave Reisner (falconindy) - Monday, 13 May 2013, 14:30 GMT
Great, util-linux-2.23-2 in testing is the official package with this fix.
Comment by Ivo Benner (skython) - Sunday, 23 June 2013, 12:10 GMT
  • Field changed: Percent Complete (100% → 0%)
Its still not working for me.

System is up-to-date. My current util-linux version is 2.23.1-2. I also tried falconindy's package, no success.
I'm using losetup on a regular file with an offset. Same error as stated in the bug report.
Comment by Dave Reisner (falconindy) - Monday, 24 June 2013, 01:42 GMT
I can't reproduce any failure. You'll need to provide more info. What's the exact command you're using? What's the file size? What's the output of 'losetup -V'

Loading...