From owner-freebsd-fs@FreeBSD.ORG Thu Oct 25 08:22:45 2007 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 D9B5E16A468 for ; Thu, 25 Oct 2007 08:22:45 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail01.syd.optusnet.com.au (mail01.syd.optusnet.com.au [211.29.132.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7F413C4F5 for ; Thu, 25 Oct 2007 08:22:45 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c220-239-235-248.carlnfd3.nsw.optusnet.com.au (c220-239-235-248.carlnfd3.nsw.optusnet.com.au [220.239.235.248]) by mail01.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l9P8MREx015732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Oct 2007 18:22:29 +1000 Date: Thu, 25 Oct 2007 18:22:26 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org, freebsd-current@freebsd.org, amdmi3@amdmi3.ru In-Reply-To: <200710241316.l9ODGYfZ093701@lurza.secnetix.de> Message-ID: <20071025180001.D87518@delplex.bde.org> References: <200710241316.l9ODGYfZ093701@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: [ANN] 8-CURRENT, RELENG_7 and RELENG_6 have gotten latest ?unionfs improvements 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: Thu, 25 Oct 2007 08:22:46 -0000 On Wed, 24 Oct 2007, Oliver Fromme wrote: > Dmitry Marakasov wrote: > > I was told long time ago that -ounion is even > > more broken than unionfs. > > That's wrong. The union mount option was _never_ really > broken. I'm using it for almost as long as FreeBSD exists. I recently noticed the following bugs in -ounion (which I've never used for anything except testing): (1) It is broken for all file systems except ffs and ext2fs, since all (?) file systems now use nmount(2) and only these two file systems have "union" in their mount options list. It is still in the global options list in mount/mntopts.h, but this is only used with mount(2). The global options list in mount/mntopts.h has many bogus non-global options, and even the global options list in kern/vfs_mount.c has some bogus non-global options, but "union" actually is a global options. ext2fs loves "union" more than ffs -- although its options list is less disordered than ffs's, it has enough disorder to have 2 copies of "union". (2) After fixing (1) by not using nmount(2), following of symlinks works strangely for at least devfs: (a) a link foo -> zero (where zero doesn't exist in the underlying file system) doesn't work. mount(1) says that the lookup is done in the mounted file system first. (b) a link foo -> ./zero works. This is correct. Now I wonder if it would work if zero existed only in the underlying file system. Have you noticed these bugs? (2) is presumably old. Bruce