[Pkg-postgresql-public] postgresql-common testsuite loop device problems

Peter Eisentraut petere at debian.org
Tue Jul 24 12:21:18 UTC 2012


On mån, 2012-07-23 at 06:53 +0200, Martin Pitt wrote:
> Peter Eisentraut [2012-07-22 23:31 +0300]:
> > losetup: /dev/loop7: device is busy
> >
> > I saw this even on two different machines.
> 
> Are you actually using the loop device? I. e. does losetup -a show
> anything?

$ sudo losetup -a
/dev/loop7: [0011]:34957998 (/tmp/jcs0Qep1NT)

That file doesn't exit and lsof doesn't show anything about it.  fuser
claims there are tons of processes using it, but that doesn't make
sense, so I must be doing something wrong there.

But I can't remove it:

$ sudo losetup -d /dev/loop7
loop: can't delete device /dev/loop7: Device or resource busy

Actually, I'm suspecting that this loop setup was left over from a
previous run of the test suite.

I've experimented with using losetup -f to find a free loop device
instead of hardcoding loop7, but that ends up locking up each loop
device in a similar fashion after a few runs.





More information about the Pkg-postgresql-public mailing list