Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755285AbaKSITh (ORCPT ); Wed, 19 Nov 2014 03:19:37 -0500 Received: from mail-qa0-f51.google.com ([209.85.216.51]:62362 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754976AbaKSITf (ORCPT ); Wed, 19 Nov 2014 03:19:35 -0500 MIME-Version: 1.0 X-Originating-IP: [46.139.80.5] In-Reply-To: <20141119015908.GV7996@ZenIV.linux.org.uk> References: <20141119015908.GV7996@ZenIV.linux.org.uk> Date: Wed, 19 Nov 2014 09:19:34 +0100 Message-ID: Subject: Re: How to cope with two incompatible overlayfs formats out in the wild From: Miklos Szeredi To: Al Viro Cc: Andy Whitcroft , Serge Hallyn , Neil Brown , linux-unionfs@vger.kernel.org, Kernel Mailing List , Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 19, 2014 at 2:59 AM, Al Viro wrote: > On Tue, Nov 18, 2014 at 03:28:03PM +0100, Miklos Szeredi wrote: > >> So from mainline we need two things: >> >> - when mounting distinguish between old and new format. >> >> - userspace can detect which formats are supported by the kernel. >> >> If we'd have a different filesystem type for the old and new formats, >> then that would solve both (checking /proc/filesystems would indicate >> which one is supported). >> >> Unfortunately that would mean having to change "overlayfs" type to >> something else in 3.18. Question is, is there some sane name which >> would fit? "overlayfs2" is perhaps the best, but I'm not overly >> enthusiastic about it. >> >> Any other ideas? > > Umm... What does the old one do when it sees workdir= in the > options? Returns EINVAL. Also the new one will fail without the "workdir=" option, as far as 3.18 is concerned at least. With the multi layer support work that option won't be mandatory any more. But that still doesn't answer the question on how to select the format. Thanks, Miklos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/