From owner-freebsd-fs@FreeBSD.ORG Wed Dec 17 07:18:18 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 343031065672 for ; Wed, 17 Dec 2008 07:18:18 +0000 (UTC) (envelope-from osharoiko@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id C11068FC12 for ; Wed, 17 Dec 2008 07:18:17 +0000 (UTC) (envelope-from osharoiko@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so298930ugs.39 for ; Tue, 16 Dec 2008 23:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=8/E8QtFD3ifAWFgdv/GSxjmj9cGNlBOUBYfERLjJ16c=; b=g5JkbxvlrCy9c92/AoWk5zXPpDJ2S/SKoxowKHn2O1yjTI/gaGLNDjedblVPX5TyX6 xu2dK89hyngCaJKZkWOoiPFk/kRFf1RWL8vMluyXZRVPLdE4sxZfDVV6WiIgu2Q6z5RC avFgUXL1akXg9+rdHL0IdbhH1Yo9cAs4L6pp0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=EaQ7JW/MLrEFwKbRv87lKdNJ20Nsvc3YPALIv6q1aTM84aBylJMJaclgnahesXSSFn J5mGFDvGfV0p3mK1pS6BArHTwZmms2w66Rd2Nfh38udpKlxfE5XcLK0Dv0KSLua6Dp96 gYFgo956iujnGDH/SQi1GBgn2P/PdaJTgUrWc= Received: by 10.67.123.8 with SMTP id a8mr3220322ugn.74.1229497080619; Tue, 16 Dec 2008 22:58:00 -0800 (PST) Received: from ?195.208.252.154? (brain.cc.rsu.ru [195.208.252.154]) by mx.google.com with ESMTPS id l20sm283623uga.14.2008.12.16.22.57.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Dec 2008 22:58:00 -0800 (PST) From: Oleg Sharoyko To: freebsd-fs@freebsd.org Content-Type: text/plain Date: Wed, 17 Dec 2008 09:57:55 +0300 Message-Id: <1229497075.1182.9.camel@brain.cc.rsu.ru> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Strange behaviour with unionfs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 07:18:18 -0000 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.