Received: by 2002:a17:90a:202a:0:0:0:0 with SMTP id n39csp3557593pjc; Sun, 2 Jun 2019 13:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfifiRIsZfcgLoMRtCyLVrfkUuEiqPpi1dJ/SdPpXII+XCt+jOJknVs6H1sBO0hZsCH8qe X-Received: by 2002:a17:902:7297:: with SMTP id d23mr11429410pll.254.1559505980570; Sun, 02 Jun 2019 13:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559505980; cv=none; d=google.com; s=arc-20160816; b=lW3UDGkQyKii7Hix6+ecWRRn7HIgEnpYOo9TQJj7Nx/+TRMsLnQ/lgyAR3tFSpWnDo ybD/7YHB8S2OeV/nELWS8WLWR/awgDAwyNRj+iRHbu5pf0/Xdxzx+r/xcza/5O4psjVp uurGJy6n7Z3TXEw4jFPWtuLhy4eGtTmV2IxPVty8Ls90nh3ysm9QLb+qeHpg4AYJREbT s/RDPVPQkANXCPJ+0UFJd6Q9QO1WIG/7UFwgjmmMm9ethgZM26FL62+63soipcvsWwqM B1P4at4Tui1xR5YK4vPJXJOmqgybeefWKfNLbeVhMFJH02Mmc8dOHnKvIwvIwH/rIY+G bjmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mpNz1u5wl3H8gDSTOws8t0HLYezozsxN3VnjXZ282jI=; b=DwvYJyERbNcbe3vrj2DcRyqGBf/WmrSGrN9HSRiITJH2/5xURA2a10S1jGEUvkt+EC fzAqgVvgQQoZrzVh2h8vN9ta5BvGyjtA+ce6d/165ju3GB8bK2dtdQBpRQZ7Mwf/L76J jlPbNud776euGyQFAIzSfbDQswQYGqBoXWyZcxkln1h3LMadMaKw5O0FvF1P41SjrVGv zll7rYaNyxDM4PY/EMkXLFRnPmlOuJUyi/krd7gwT4MKVsFAC326QVK5LWCihK8sEnxx jwFxCWgNjfbqRKXwAWYEFgmMD5AILFoAyXi2ifyQTtNzBfd5CM2WbytE2H7neFnUrL5i YdqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RwVIkvpI; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 34si16547027plp.305.2019.06.02.13.02.40; Sun, 02 Jun 2019 13:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RwVIkvpI; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbfFBUBH (ORCPT + 99 others); Sun, 2 Jun 2019 16:01:07 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:43279 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbfFBUBH (ORCPT ); Sun, 2 Jun 2019 16:01:07 -0400 Received: by mail-yb1-f193.google.com with SMTP id n145so5811958ybg.10; Sun, 02 Jun 2019 13:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mpNz1u5wl3H8gDSTOws8t0HLYezozsxN3VnjXZ282jI=; b=RwVIkvpIrR0s7NJYEI8CPxdRKTWJWiJlz1I3UC3x8Ozif7fkdrMpIGfFHDYCuskmtq R1Rue/QeN3USCh56yfb7V9jQ2N0gwmmHEeCaAp871EwTo37MSmemJ0D6KmNYDd053I91 gJVdL35afziAaBzxKOyPa6/ZISf2Y87jWJMmZOZy0bVtldpmKVeZYNZ+sWXzW3xiysok 1D3+CNW8AhkeZfdK+/uF1oDiXB0kr7GtzYyyUnsxcjv5td4I9K7QvivydPJjXz7hQLD/ fquXbFXE/4IU1oGWCxeUHPuspCjjaqBcH/e1GsOG9I6a9gdVA0k7U5qIAjNNVDkYMYM9 8USQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mpNz1u5wl3H8gDSTOws8t0HLYezozsxN3VnjXZ282jI=; b=RPgA7QSAHPrb7m/2XzvHWAksf3KgUR5MhznWOuSdikrofquSMVReL1eXJFC5882CC8 r43biimoWCqxzOftwdh8so5lAZFTkK9zpgWFfq0g43YPZRveMiTUjOzRQi9b4U9Tn49a /1m4QrHeZenIuJ9h0UQQlWitpiO3KORS0AEY65EOK/Y8D397Njvonj/DIxf/Fn3Wv7Il Y271IECfkYqmoQN8osSZS90vN3BPh7CBcTpmUoJ5WuuKExFXkXtTccyoxBM7nJYmqH6x CzhM8/JhNr+AidcGZOsvdijXJeTYPI8fptuxeMEOwwxJZqW1FPWMVgqHlBZC7h0Ckq4I bjfQ== X-Gm-Message-State: APjAAAWP/8B75AHpd0oUYLSYW1+9njmx2QzZUyGYqGwOtYu/n9fkROc1 7cdyhIOJm+x0lpcqvaVqEP8QtwUqs6y5leD925g= X-Received: by 2002:a05:6902:4c3:: with SMTP id v3mr10450501ybs.144.1559505661297; Sun, 02 Jun 2019 13:01:01 -0700 (PDT) MIME-Version: 1.0 References: <20190602180057.GA4865@mit.edu> In-Reply-To: <20190602180057.GA4865@mit.edu> From: Amir Goldstein Date: Sun, 2 Jun 2019 23:00:49 +0300 Message-ID: Subject: Re: which lower filesystems are actually supported? To: "Theodore Ts'o" Cc: Marco Nelissen , overlayfs , Ext4 , Gabriel Krisman Bertazi , "Darrick J. Wong" Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sun, Jun 2, 2019 at 9:01 PM Theodore Ts'o wrote: > > On Sun, Jun 02, 2019 at 09:42:54AM +0300, Amir Goldstein wrote: > > [+cc ext4] Heads up on bug reports "Overlayfs fails to mount with ext4" > > > > On Sat, Jun 1, 2019 at 11:02 PM Marco Nelissen wrote: > > > > > > According to the documentation, "The lower filesystem can be any filesystem > > > supported by Linux", however this appears to not actually be the case, since > > > using a vfat filesystem results in the mount command printing "mount: > > > wrong fs type, bad option, bad superblock on overlay, missing codepage or > > > helper program, or other error", with dmesg saying "overlayfs: filesystem on > > > '/boot' not supported". > > > (that's from ovl_mount_dir_noesc(), when ovl_dentry_weird() returns nonzero) > > > > Specifically for vfat it is weird because of > > dentry->d_flags & (DCACHE_OP_HASH | DCACHE_OP_COMPARE) > > because it is case insensitive. > > Marco, did you actually *need* to use the case insensitive feature? Marco reported the error on vfat and asked which other fs will have similar issue. > It is not turned on by default by e2fsprogs, and the assumption was > that it only be turned in cases where it was needed --- e.g., VM's > running Steam games that need Microsoft file system semantics, > including case insensitivity, Samba (and eventually NFSv4) file > servers for the same reason, and Android (so people won't have to try > to get the abomination known as sdcardfs upstream :-). > > > > > I am guessing when people start using case insensitive enabled ext4, > > this problem > > is going to surface, because the same ext4 (e.g. root fs) could be > > used for samba > > export (case insensitive) and docker storage (overlayfs). > > So I didn't think this would be that common, since you can certainly > run Sambda without this new file system feature --- Samba has lived > without it for over a decade. The performance penalty for brute force in some worse cases is abysmal. Most users don't know enough to blame the case insensitive compatibility layer. > However, if you are running a high > performance file server, it matters --- but if you're running a high > performance file server, you're certainly not going to be trying to do > it on the same server as one running Docker. Ted, people are using docker for anything these days. The chances that people won't use docker on the same machine where ext4 case insensitive was enabled are slim. It doesn't have to be high perf. server. It's enough that someone reads an article about improving Samba with ext4 to set it up for its home server. > > Now, if you're trying to use overlayfs for some kind of snapshot > application, then we'll need to figure out how to make overlayfs and > ext4 work together --- but I view this as much more over an overlay > compatibility issue than an ext4 bug. > Sure, but the complaints will start with "I enabled ext4 case insensitive and docker stopped working..." the sooner we are ready for this the better. > We *might* be able to only set the dentry functions on directory > entries belonging to directories which have the casefold flag set, > instead of simply setting it on all ext4 dentry entries. But still > won't change the fact that overlayfs is going to have case > insensitivity support if we want the combination of overlayfs && > casefold to be supported. > > > I didn't see that xfstests-bld was updated with case folding configs for ext4, > > nor that xfstests has any new case folding tests (saw some posted), so I guess > > that is still in the works (?). > > That's correct, it's still on the todo list. > > > Did you happen to try out overlayfs/docker over a case insensitive enabled fs? > > Nope. I didn't think that was going to be a common use case. Docker > is typically used on servers, where as case insensitivity is important > for clients and file servers --- at least on the general case. > > > I wonder if you could spare a few extra GCE instances per pre-release tests > > to run an overlay over ext4 config? > > I was nagging Darrick about this for a while and now I think the > > overlay/xfs config > > is being tested regularly. > > It wouldn't be that hard to test overlayfs with ext4 for my > pre-release testing. But it would only be in the default ext4 > configuration --- and that doesn't include the case fold feature. > Yep, that's what I had in mind. I know it wouldn't have caught this specific issue. Thanks, Amir.