From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Olszak Subject: Re: Optional switching off cow in overlayfs Date: Wed, 24 Jun 2015 18:03:10 +0200 Message-ID: <558AD4BE.109@samsung.com> References: <55893699.6090109@samsung.com> <55882AA5.10908@samsung.com> <5582C6C1.8080602@samsung.com> <13405.1434634748@warthog.procyon.org.uk> <5582D8F7.1060700@samsung.com> <5588116E.20509@samsung.com> <55881B2A.7090106@samsung.com> <29219.1435051659@warthog.procyon.org.uk> <32715.1435065828@warthog.procyon.org.uk> <5589845F.5080206@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailout2.w1.samsung.com ([210.118.77.12]:21895 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752985AbbFXQDO (ORCPT ); Wed, 24 Jun 2015 12:03:14 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQG0008SHXBSH50@mailout2.w1.samsung.com> for linux-unionfs@vger.kernel.org; Wed, 24 Jun 2015 17:03:11 +0100 (BST) In-reply-to: <5589845F.5080206@samsung.com> Sender: linux-unionfs-owner@vger.kernel.org List-Id: linux-unionfs@vger.kernel.org To: David Howells Cc: Miklos Szeredi , "linux-unionfs@vger.kernel.org" On 06/23/2015 06:07 PM, Jan Olszak wrote: > > On 06/23/2015 03:23 PM, David Howells wrote: >> Jan Olszak wrote: >> >>> Why not just say: "rename causes copy" and leave everything as it is >>> now. >> That's another option - but your whole proposal was that we >> specifically don't >> copy up these files IIRC. >> > > Yes, so let's modify the proposal: > > Overlayfs checks xattr "trusted.overlay.cow" to switch COW off > whenever it's possible. > > 1. This would be an optimization/convenience option, not a security > option > 2. By default overlayfs uses COW like it does now > 3. trusted.overlay.cow=="n" means: > - Unlink, open, setattr etc. use the original inode from lowerdir > - Unmodifying operations also use inode from lowerdir > - Other operations (rename) may copy the file if it's required by the > implementation of overlayfs > So does it sound upstreamable? Jan