From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 17:03:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 079C710656A3; Fri, 20 Aug 2010 17:03:30 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 996C58FC12; Fri, 20 Aug 2010 17:03:29 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id B87BA2A28CF3; Fri, 20 Aug 2010 19:03:27 +0200 (CEST) Date: Fri, 20 Aug 2010 19:03:27 +0200 From: Ed Schouten To: Daichi GOTO Message-ID: <20100820170327.GL2978@hoeg.nl> References: <4C6B9F51.1060009@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cW0eHRJ76X8TDo3d" Content-Disposition: inline In-Reply-To: <4C6B9F51.1060009@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, ozawa@ongs.co.jp Subject: Whiteout support for tmpfs [Was: unionfs a little improvement] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 17:03:30 -0000 --cW0eHRJ76X8TDo3d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, Even though the proposed fix for unionfs would still be nice to have in SVN, I just wrote a patch for tmpfs to add support for whiteouts: http://80386.nl/pub/tmpfs-whiteout.txt Basically I've implemented it by allowing directory entries to refer to NULL inodes, to indicate the entry is a whiteout. I think the patch should work pretty well, but what I dislike about it, is that when it removes a file and replaces it by a whiteout, it deallocates the entire directory entry, followed by the allocation of a new directory entry for the whiteout. This could be done more efficiently, but the problem is that it turns the code into a mess. Any comments? --=20 Ed Schouten WWW: http://80386.nl/ --cW0eHRJ76X8TDo3d Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxutV8ACgkQ52SDGA2eCwWV2wCdFgiJwRp3LqMCyav+AJfLHg6b /cIAn2MtKM/AEmxHH7mW7WpdU8dKPMdT =UF2+ -----END PGP SIGNATURE----- --cW0eHRJ76X8TDo3d--