From owner-freebsd-fs@FreeBSD.ORG Tue Nov 25 11:55:48 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 85A821065678 for ; Tue, 25 Nov 2008 11:55:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B25458FC12 for ; Tue, 25 Nov 2008 11:55:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA21409 for ; Tue, 25 Nov 2008 13:55:46 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <492BE7C1.8030503@icyb.net.ua> Date: Tue, 25 Nov 2008 13:55:45 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: unionfs below: only read-only? 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: Tue, 25 Nov 2008 11:55:48 -0000 $ uname -srm FreeBSD 7.1-PRERELEASE amd64 $ mount -t unionfs -o below -o rw /usr/ports/distfiles /export/j386/usr/ports/distfiles mount_unionfs: /export/j386/usr/ports/distfiles: : Operation not supported Exit 71 $ mount -t unionfs -o below -o ro /usr/ports/distfiles /export/j386/usr/ports/distfiles Exit 0 My intention was to mount /usr/ports/distfiles into a jail but in such way that jail can not modify any "global" files but can add some files of its own. This is similar to the last example in mount_unionfs(8): mount -t unionfs -o noatime -o below /sys $HOME/sys But it seems that with -o below I can mount a filesystem only in RO mode which is totally useless because I can not write anything to "uniondir" i.e. /export/j386/usr/ports/distfiles: $ cp ~/tar/diablo-caffe-freebsd6-i386-1.5.0_07-b01.tar.bz2 /export/j386/usr/ports/distfiles/ cp: /export/j386/usr/ports/distfiles/diablo-caffe-freebsd6-i386-1.5.0_07-b01.tar.bz2: Read-only file system Exit 1 So effectively this is a nullfs ro mount. Is there a buglet or am I missing something? -- Andriy Gapon