Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2008 09:57:55 +0300
From:      Oleg Sharoyko <osharoiko@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Strange behaviour with unionfs
Message-ID:  <1229497075.1182.9.camel@brain.cc.rsu.ru>

next in thread | raw e-mail | index | archive | help
Hi!

Could please someone check the following sequence of commands in recent
-CURRENT:

cd /tmp
mkdir sandbox
cd sandbox/
mkdir -p 1
mkdir -p 2/2
mkdir -p 3/3
echo Test > 3/3/test.txt
mount -t unionfs 2 1
mount -t nullfs 3 1/2
cat 1/2/3/test.txt
test -d 1/2
cat 1/2/3/test.txt

I'm running -STABLE with patch for unix sockets (which I converted from
-CURRENT) and it gives me really strange results:

hetzner-srv1, /tmp # cd /tmp
hetzner-srv1, /tmp # mkdir sandbox
hetzner-srv1, /tmp # cd sandbox/
hetzner-srv1, /tmp/sandbox # mkdir -p 1
hetzner-srv1, /tmp/sandbox # mkdir -p 2/2
hetzner-srv1, /tmp/sandbox # mkdir -p 3/3
hetzner-srv1, /tmp/sandbox # echo Test > 3/3/test.txt
hetzner-srv1, /tmp/sandbox # mount -t unionfs 2 1
hetzner-srv1, /tmp/sandbox # mount -t nullfs 3 1/2
hetzner-srv1, /tmp/sandbox # cat 1/2/3/test.txt
cat: 1/2/3/test.txt: No such file or directory
hetzner-srv1, /tmp/sandbox # test -d 1/2
hetzner-srv1, /tmp/sandbox # cat 1/2/3/test.txt
Test
hetzner-srv1, /tmp/sandbox # 

It looks like files in subdirectories of filesystems mounted on top of
unionfs are not visible until I somehow test the mountpoint.

-- 
Oleg Sharoyko.
Software and Network Engineer
Computer Center of Rostov State University.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1229497075.1182.9.camel>