From: redneb@gmx.com
To: linux-btrfs@vger.kernel.org
Subject: bug (?) with statvfs call on a subvolume
Date: Sun, 11 Jul 2010 08:16:07 -0400 [thread overview]
Message-ID: <20100711121607.GA5234@epicurus> (raw)
I am trying to use EncFS in conjunction with btrfs and I ran into a
weird situation which I think is caused by statvfs being called on a
btrfs subvolume.
In particular, when I do something like the following:
statvfs("/mnt/btrfs-volume/some-subvolume")
then all mounted FUSE file-systems receive a GETATTR request. This is
strange because it happens to FUSE file-systems completely unrelated to
/mnt/btrfs-volume.
This can cause serious problems with some FUSE file-systems such as
EncFS. For instance, suppose that you have an EncFS file-systems as
follows:
encfs /mnt/btrfs-volume/some-subvolume /home/user/private
Whenever you do statvfs("/home/user/private") then EncFS will internally
call statvfs("/mnt/btrfs-volume/some-subvolume") but this in turn will
cause the FUSE method getattr to be called. This cycle of dependencies
results in a deadlock.
STEP TO REPRODUCE:
1. btrfs subvolume create /mnt/btrfs-volume/private
2. mkdir /home/user/private
3. encfs /mnt/btrfs-volume/private /home/user/private
4. [ do statvfs("/home/user/private") ]
In step 4, stavfs will never return and /home/user/private will become
unresponsive.
reply other threads:[~2010-07-11 12:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100711121607.GA5234@epicurus \
--to=redneb@gmx.com \
--cc=linux-btrfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.