public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sys_umount() returns EBUSY when doing: sh -c "mount /dev/sdc1 /mnt;  umount /mnt"
@ 2010-03-13  8:56 Francis Moreau
  2010-03-14 16:21 ` Robert Hancock
  0 siblings, 1 reply; 4+ messages in thread
From: Francis Moreau @ 2010-03-13  8:56 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello

I've some shell scripts which try to find out the filesystem hosted by
a block device.

They basically do this:

    mount /dev/sdc1 /mnt
    fs=$(stat -f -c %T $mount_point)
    umount /mnt

It happens to work but since an unknown upgrade (kernel, libs or tools
upgrade), umount(8) returns -EBUSY.

I found that it's actually the sys_umount() which return -EBUSY.

So the question, is this expected or is this a regression ?

If it's expected then which operation should I add between the
mount(8) and umount(8) to make the mount operation completely finish
(inside the kernel) so the next umount won't return -EBUSY ?

Oh I'm currently using the kernel shipped with F12: 2.6.32.9-67.fc12.x86_64

Thanks
-- 
Francis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-16 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13  8:56 sys_umount() returns EBUSY when doing: sh -c "mount /dev/sdc1 /mnt; umount /mnt" Francis Moreau
2010-03-14 16:21 ` Robert Hancock
2010-03-15 12:09   ` Francis Moreau
2010-03-16 11:06     ` Petr Uzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox