From: Andy Lutomirski <luto@myrealbox.com>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: the umount() saga for regular linux desktop users
Date: Sat, 01 Jan 2005 11:40:34 -0800 [thread overview]
Message-ID: <41D6FCB2.5070507@myrealbox.com> (raw)
In-Reply-To: <20041231175051.GD2818@pclin040.win.tue.nl>
Andries Brouwer wrote:
> On Fri, Dec 31, 2004 at 05:41:02PM +0000, William wrote:
>
>
>>Regularly, when attempting to umount() a filesystem I receive 'device is busy'
>>errors. The only way (that I have found) to solve these problems is to go on
>>a journey into processland and kill all the guilty ones that have tied
>>themselves to the filesystem concerned.
>
>
> Do you know about the existence of the MNT_DETACH flag of umount(2),
> or the -l option of umount(8)?
>
> It seems that does at least some of the things you are asking for.
I have this complaint too, and MNT_DETACH doesn't really do it.
Sometimes I want to "unmount cleanly, damnit, and I don't care if
applications that are currently accessing it lose data." Windows can do
this, and it's _useful_.
<rant>
I think part of the nastiness is that mount now means too things:
1) Read the superblock, fire up the fs, etc.
2) Shove the thing into the namespace.
The fact that the current mount/umount interface papers over the
distinction is at least confusing. It made sense before there were bind
mounts. Now, for example, mount /dev/hda2 /mnt/whatever does something
_different_ depending on whether hda2 is already mounted. And the mount
options will be silently ignored sometimes. Then, I can MNT_DETACH
something to separate it from the namespace, but I can't force it to
actually shut down the fs. There is no interface for it.
Shouldn't these be separate syscalls with separate parameters? For
example, ro applied to the fs should mean "don't touch the device" and
ro applied to the view in the namespace should mean "don't write to this
view."
</rant>
next prev parent reply other threads:[~2005-01-01 19:39 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-31 17:41 the umount() saga for regular linux desktop users William
2004-12-31 17:47 ` Arjan van de Ven
2004-12-31 17:48 ` Ush
2004-12-31 18:22 ` Gene Heskett
2004-12-31 18:31 ` Miquel van Smoorenburg
2004-12-31 21:48 ` Tom Felker
2005-01-01 0:07 ` Gene Heskett
2004-12-31 17:50 ` Andries Brouwer
2005-01-01 19:40 ` Andy Lutomirski [this message]
2004-12-31 17:51 ` Gene Heskett
2005-01-16 4:39 ` Greg Stark
[not found] <fa.iji5lco.m6nrs@ifi.uio.no>
[not found] ` <fa.fv0gsro.143iuho@ifi.uio.no>
2005-01-02 12:38 ` Bodo Eggert
2005-01-02 20:27 ` Adrian Bunk
2005-01-03 0:37 ` Bodo Eggert
2005-01-02 22:43 ` Valdis.Kletnieks
2005-01-04 20:28 ` Lee Revell
2005-01-05 2:12 ` Bodo Eggert
-- strict thread matches above, loose matches on Subject: below --
2005-01-02 19:37 Pavel Machek
2005-01-02 20:11 ` Adrian Bunk
2005-01-02 20:15 ` Pavel Machek
2005-01-02 20:34 ` Oliver Neukum
2005-01-02 20:51 ` Adrian Bunk
2005-01-02 20:56 ` Pavel Machek
2005-01-02 21:05 ` Adrian Bunk
2005-01-03 9:35 ` Frank van Maarseveen
2005-01-03 19:14 ` Ingo Oeser
2005-01-02 20:36 ` Adrian Bunk
2005-01-03 1:36 ` Puneet Vyas
2005-01-02 20:36 ` Andreas Schwab
[not found] <fa.foeqpaf.nlmd9n@ifi.uio.no>
[not found] ` <fa.d9avdr3.1jm46gr@ifi.uio.no>
2005-01-03 1:17 ` Bodo Eggert
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=41D6FCB2.5070507@myrealbox.com \
--to=luto@myrealbox.com \
--cc=aebr@win.tue.nl \
--cc=linux-kernel@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