From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: roman-ohbefDXYbNo@public.gmane.org
Cc: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
Subject: Re: Constant checkpointing and cleanerd activity - doesn't play nice with mount --bind ?
Date: Tue, 31 Mar 2009 23:44:37 +0900 (JST) [thread overview]
Message-ID: <20090331.234437.112904649.ryusuke@osrg.net> (raw)
In-Reply-To: <20090317191924.1924576b-2Ve/5xEMxL0@public.gmane.org>
Hi,
On Tue, 17 Mar 2009 19:19:24 +0500, Roman Mamedov <roman-ohbefDXYbNo@public.gmane.org> wrote:
> What is really strange, is that it looks like I can unmount the main
> NILFS, but the bind mount will continue to be accessible and writable.
> And when I remount the main mount point back, cleanerd grabs the bind
> mount. See below:
>
> # mount -t nilfs2 /dev/mapper/hi320data /mnt/hi320data
> mount.nilfs2: WARNING! - The NILFS on-disk format may change at any
> time.
> mount.nilfs2: WARNING! - Do not place critical data on a NILFS
> filesystem.
>
> # mount --bind /mnt/hi320data/test/ /mnt/bind-test/
>
> # ls /mnt/bind-test/
>
> # touch /mnt/bind-test/abc
>
> # umount /mnt/hi320data
>
> # umount /mnt/hi320data
> umount: /mnt/hi320data: not mounted
>
> # touch /mnt/bind-test/def
>
> # ls /mnt/bind-test/
> abc def
>
> # mount -t nilfs2 /dev/mapper/hi320data /mnt/hi320data
> mount.nilfs2: WARNING! - The NILFS on-disk format may change at any
> time.
> mount.nilfs2: WARNING! - Do not place critical data on a NILFS
> filesystem.
>
> # ls /mnt/hi320data/test/
> abc def
>
> # umount /mnt/bind-test
> umount: /mnt/bind-test: device is busy
> umount: /mnt/bind-test: device is busy
>
> # fuser -c /mnt/bind-test/
> /mnt/bind-test/: 23203
>
> # ps -Af | grep 23203
> root 23203 1 1 19:06 ? 00:00:00 /sbin/nilfs_cleanerd
> -n /dev/mapper/hi320data /mnt/hi320data
>
> -----------------------
> Maybe it misdetects the bind mount as another mount of the same
> filesystem (e.g. like when mounting a snapshot)?
Now, I'm considering not to invoke cleanerd for bind-mounts. It is
too complex to switch over the base directory of cleanerd along with
mount/umount events as above. (It is possible but I'd rather avoid
complicating life management of cleanerd any further.)
In addition, the bind mount can attach only part of a single
filesystem, and therefore the .nilfs file, which is required for
proper cleaner operation, is not assured to exist on the top of mount
point for bind mounts.
Do you have any inconvenience if I disable GC for bind mounts?
Usually bind mount has an original rw-mount though Linux can
detach original mount prior to the bind-mount.
Regards,
Ryusuke Konishi
next prev parent reply other threads:[~2009-03-31 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 10:45 Constant checkpointing and cleanerd activity - doesn't play nice with mount --bind ? Roman Mamedov
[not found] ` <20090317154529.1aeeecdc-2Ve/5xEMxL0@public.gmane.org>
2009-03-17 13:43 ` Ryusuke Konishi
[not found] ` <20090317.224324.58871500.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-17 14:19 ` Roman Mamedov
[not found] ` <20090317191924.1924576b-2Ve/5xEMxL0@public.gmane.org>
2009-03-22 17:53 ` Ryusuke Konishi
2009-03-31 14:44 ` Ryusuke Konishi [this message]
[not found] ` <20090331.234437.112904649.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-31 15:10 ` Ryusuke Konishi
[not found] ` <20090401.001059.06956465.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-03-31 15:14 ` Alex Bitney
[not found] ` <591bc86b0903310814t2814ab95ie71077d5bb59f99d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-31 16:09 ` Ryusuke Konishi
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=20090331.234437.112904649.ryusuke@osrg.net \
--to=ryusuke-sg5x7nla6pw@public.gmane.org \
--cc=roman-ohbefDXYbNo@public.gmane.org \
--cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.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