linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gauchard <gauchard@laas.fr>
To: linux-fsdevel@vger.kernel.org
Subject: unionfs-fuse freeze, starting with Linux 4.0
Date: Sat, 20 Aug 2016 01:30:34 +0200	[thread overview]
Message-ID: <20160819233034.GC22757@laas.fr> (raw)


Hello,

I am sent here by the libfuse maintainer with the following issue:

[ https://github.com/libfuse/libfuse/issues/57 ]

Using unionfs-fuse, here is a simple script that freezes the caller when
accessing to the mounted directory.  After some tests, it appears that this
script is working with previous versions of the kernel's fuse-api (with any
version of unionfs or fuse even the latests).

On <v4 kernel, it works (kernel/fuse api up to 7.22).
On 4+ kernels (or kernel's fuse-api 7.23), it freezes (the script stops on
the "freezing?" message, a reboot is needed to sort this out)

The idea behind this script is mounting an existing directory above itself
with modifcations pushed to another one.  I'm aware I'm (was) exploiting
some sort of out-of-purpose side effect.

There is at least a bug (freezing), but it would be great to restore the
feature back.

Best

david


#!/bin/sh
set -x
while umount /tmp/test; do true; done
set -e
rm -rf /tmp/rw
mkdir -p /tmp/test /tmp/rootbind /tmp/rw
date > /tmp/test/a
mount -o bind / /tmp/rootbind
unionfs -o allow_other,use_ino,suid,dev,nonempty,cow /tmp/rw=RW:/tmp/rootbind/tmp/test=RO /tmp/test
echo freezing?
echo not freezing >> /tmp/test/a
cat /tmp/test/a
cat /tmp/rootbind/tmp/test/a


                 reply	other threads:[~2016-08-19 23:38 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=20160819233034.GC22757@laas.fr \
    --to=gauchard@laas.fr \
    --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).