From: Francis Moreau <francis.moro@gmail.com>
To: linux-fsdevel@vger.kernel.org
Subject: sys_umount() returns EBUSY when doing: sh -c "mount /dev/sdc1 /mnt; umount /mnt"
Date: Sat, 13 Mar 2010 21:30:12 +0100 [thread overview]
Message-ID: <38b2ab8a1003131230q469158b3qd7dcb9f880ea68e1@mail.gmail.com> (raw)
In-Reply-To: <38b2ab8a1003130056u4b025839i556a797ccad894de@mail.gmail.com>
[resending to fs-devel mailing list hoping to get some hints]
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
--
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2010-03-13 20:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38b2ab8a1003130056u4b025839i556a797ccad894de@mail.gmail.com>
2010-03-13 20:30 ` Francis Moreau [this message]
2010-03-15 16:04 ` sys_umount() returns EBUSY when doing: sh -c "mount /dev/sdc1 /mnt; umount /mnt" Andreas Dilger
2010-03-15 16:34 ` Al Viro
2010-03-15 20:23 ` Francis Moreau
2010-03-16 6:53 ` Ian Kent
2010-03-15 20:19 ` Francis Moreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38b2ab8a1003131230q469158b3qd7dcb9f880ea68e1@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).