Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17086 - [util-linux-ng] losetup lacks -f -d etc, man losetup describes their use as on other linux dists.

Attached to Project: Arch Linux
Opened by Michael J Evans (mjevans) - Tuesday, 10 November 2009, 03:08 GMT
Last edited by Allan McRae (Allan) - Tuesday, 10 November 2009, 05:28 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Test case:

truncate -s1M test ;\
losetup /dev/loop0 test ;\
losetup -a ;\
losetup -d /dev/loop0 ;\
rm test

Working Gentoo Stable (should also work on virtually any other linux dist)
truncate -s1M test ;\
> losetup /dev/loop0 test ;\
> losetup -a ;\
> losetup -d /dev/loop0 ;\
> rm test
/dev/loop/0: [fc01]:60395 (/usr/src/e2progs/build/test)

Otherwise working Arch install:
truncate -s1M test ;\
> losetup /dev/loop0 test ;\
> losetup -a ;\
> losetup -d /dev/loop0 ;\
> rm test
LOOP_SET_FD: Device or resource busy
Usage: losetup <loop device> <filename>
-d: No such file or directory

(Note: /dev/loop0 was already in use because I lack losetup -d to detach the old use case.)

pacman -Qs util-linux-ng
local/lib32-util-linux-ng 2.16-1 [0.12 MB]
Miscellaneous system utilities for Linux

man losetup - set up and control loop devices
SYNOPSIS
losetup [options] loop_device file
losetup [ -d ] loop_device
losetup -a
losetup -f

-d Detach the file or device associated with the specified loop device.
-a Show status of all loop devices.
-f Find and show next unused loop device.
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 10 November 2009, 05:28 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 10 November 2009, 03:13 GMT
Something is wrong in your system: lib32-util-linux-ng why you have installed this package and not util-linux-ng?


Comment by Michael J Evans (mjevans) - Tuesday, 10 November 2009, 03:20 GMT
Another test user in #archlinux reported they did not have this issue; while attempting to find out what package they owned that provided a proper version:

pacman -Qo `which losetup` on my system could not find the package, even though pacman -Ql util-linux-ng reported that file should exist.

After removing /bin/losetup and re-installing util-linux-ng I have the behavior I was expecting. I've no idea where my other losetup came from though.
Comment by Michael J Evans (mjevans) - Tuesday, 10 November 2009, 03:22 GMT
Re: 1

I have both installed, I only copied the first entry by mistake.

local/lib32-util-linux-ng 2.16-1 [0.12 MB]
Miscellaneous system utilities for Linux
local/util-linux-ng 2.16-1 [6.75 MB] (base)
Miscellaneous system utilities for Linux

Loading...