bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8.0beta : missing umount at end of tests


From: Gilles Espinasse
Subject: Re: 8.0beta : missing umount at end of tests
Date: Mon, 19 Oct 2009 00:41:17 +0200

----- Original Message ----- 
From: "Jim Meyering" <address@hidden>
To: "Gilles Espinasse" <address@hidden>
Cc: <address@hidden>
Sent: Sunday, October 18, 2009 6:00 PM
Subject: Re: 8.0beta : missing umount at end of tests


..
> > But trying to erase source package after compilation make this error
> > rm: cannot remove directory
> > `/usr/src/coreutils-8.0/tests/cu-one-file-system.ywMta9oMdx/a/b': Device
or
> > resource busy
> >
> > Before removing sources, adding
> > umount $(DIR_APP)/tests/cu-one-file-system.*/a/b
> > fix the error
> >
> > Same problem happen with 7.6
>
> Thanks for the report.
> I tried to reproduce it like this:
>
>     sudo make check -C tests TESTS=rm/one-file-system VERBOSE=yes
>
> But that worked just fine, because the test is careful
> to unmount the directory it uses.
>
Yes I have seen that in one-file-system.log

> Can you try that?
>
> If it fails, please post the log file it creates
> in tests/rm/one-file-system.log

As I am root inside the chroot, I have done
make check -C tests TESTS=rm/one-file-system VERBOSE=yes

Test work
[chroot-i486] root:/usr/src/coreutils-8.0$ make check -C tests
TESTS=rm/one-file-system VERBOSE=yes
make: Entering directory `/usr/src/coreutils-8.0/tests'
make  check-TESTS
make[1]: Entering directory `/usr/src/coreutils-8.0/tests'
make[2]: Entering directory `/usr/src/coreutils-8.0/tests'
PASS: rm/one-file-system
=============
1 test passed
=============
make[2]: Leaving directory `/usr/src/coreutils-8.0/tests'
make[1]: Leaving directory `/usr/src/coreutils-8.0/tests'
make: Leaving directory `/usr/src/coreutils-8.0/tests'

The problem could be shorten to
> mount --bind /dev/shm/tmp10767 a/b
...
> + umount /dev/shm/tmp10767
> umount: /dev/shm/tmp10767: not mounted

mount think a/b is mounted, not /dev/shm/tmp10767


If that matter
[chroot-i486] root:/usr/src/coreutils-8.0$ mount --version
mount from util-linux-ng 2.16.1 (with libblkid support)

[chroot-i486] root:/usr/src/coreutils-8.0$ ls -l /etc/mtab
lrwxrwxrwx 1 root root 12 Oct 18 09:42 /etc/mtab -> /proc/mounts

Gilles




Attachment: one-file-system.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]