Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3479801ybi; Sun, 2 Jun 2019 16:21:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHJ3q4aS62KA4q05NvRyENis16IYKTNLe2NNq7sp1tqyC2fWlGARqeM1S/OfUOHDEt+ie7 X-Received: by 2002:a63:d354:: with SMTP id u20mr24172820pgi.129.1559517671355; Sun, 02 Jun 2019 16:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559517671; cv=none; d=google.com; s=arc-20160816; b=u5qLzLbkAa/iudo9tAzKc7YDUgBKm8xb5sj/OqG7hX/pXaWzaZ3CLJIxtqj3dnd0vG 6VINyvDNswRpq6vEgz1hlVqwhrqzuvevyaCkIC6WLHIuaMvG92WYuZ2lhLgjHXlYmxIO 9IYVa1gg2GcIEhDsm9uds2xrzg5wTNU6oEKl3BqLXdeN2bjogkaCv1AyOLTHRy3z1AVp s8cDk4AZx3VQG4Q4UZy17q8YGVvBeAL/crXVG8fbytIeGC4eebeF5mT3F+WKJhKpU2k/ KLtASmF5xrLoaUAWOU81DCPgnl9UNUpfyRy8uR9EC1d36EIUFrmFtjB7n8r8SkNqAyCs ONbg== 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=0ldwIwvPo/ZsJBFE5IYIbOzrH4aPsDsSqzA+e7DVNyM=; b=NkuwzJID/B531v+wFk05f0hcb6KJuOjL9lQcpJRexethDU5Ut7tuOZqsn3RzdL2rg7 vVhYzZ3rJSLQ4dZh8MM8DvdCzogtiPrLrSO5/E1A3m8LG5sA4PLHz5nCDXo5UIIjodPf t9rDggQErx0pzdii6EbNjp0IMWSlWb4FzbILd7Q2zTGQsWssRrfgETNjca9wt1hZtGPr 1/kMcrdmjjrrR1WxEpFjkR3hi6Jjr8xk9ylqJtCaU66xZ2aFM318OXO6ErR/uYbLuEhk zPKSNh6kEnWUOs8SJZ8R5HfxZHVZWayulHBaIdg4kZ4IV8P+dYHWl6rWjzUFD5B1rKNn MEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iDZZmSrK; 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 x22si15558544pgj.271.2019.06.02.16.20.20; Sun, 02 Jun 2019 16:21:11 -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=iDZZmSrK; 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 S1726652AbfFBXSl (ORCPT + 99 others); Sun, 2 Jun 2019 19:18:41 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:38830 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfFBXSk (ORCPT ); Sun, 2 Jun 2019 19:18:40 -0400 Received: by mail-yb1-f195.google.com with SMTP id x7so3404436ybg.5; Sun, 02 Jun 2019 16:18:40 -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=0ldwIwvPo/ZsJBFE5IYIbOzrH4aPsDsSqzA+e7DVNyM=; b=iDZZmSrKYO4VS5Jhy8U04FpBqWow5Sz+ouQ+hMw2fsr81T67nd7O5RfHWUn3jUBXuZ KUV4VLknSXr0+kkerK/7ltQl4H6y1rDJUCMnlj3lyuGXHK333pXjfSgnjzw8S5CG96Cm BYTR1QeoCEXG37f4GOQiywLxw2uHCzLLPJuQ08ebVbdDMP0WdbYzyQIz2H62CNgPXs9b HeV8K3X8ztSuO8V4895u6aRmOxhdtloRsbfgEyDiWeM5LWzpl8PqJ1xEumMkgTMMR6TT +PAemwKB4DM/xcfCbSZdA/3/DLg6b4KZ2WgsjclWbmj3azFfCIWV2MUjV2fvFl5zz5wy HYPQ== 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=0ldwIwvPo/ZsJBFE5IYIbOzrH4aPsDsSqzA+e7DVNyM=; b=FKgOuqqBgRED1L3176sOlyXH1n+4BcFpM0D6gySO1mQm5h2mLEclHj8FtpIWDltmfY mD7sAC2zJC/TgEEUaMU6BjPHJAeQJamFGkNAtC8k36nd/3ZZYxtZXGTgMQ2+oz4esspY oKb6AuTULUZxlb6qKgyuasZKBKJmunwXQE8PWCW36E1NMGOpvuXxHDPCQMM29+nroJg7 I6wkupNbld5zqw19mwmPePK6mXkw+Xq5xpBiYTRcKeZDWgYTDijqninY7UlUysL/fGiG 7WQLb9BB2+i1W6VJPbDhj91V2xPSHrb3CKMgYD/Ve4thn6KmJWtlyiIVk4C3nTuEwMcm nBng== X-Gm-Message-State: APjAAAV/Uk0gNacxoa24xq7K6HXUTE+99ojpwljs3E0AXtzDKa3T7FF9 WpAoPrX0lBKeL/hjOsZEFmAmrfYvyGPV2FToKJo= X-Received: by 2002:a25:d946:: with SMTP id q67mr10448201ybg.126.1559517519473; Sun, 02 Jun 2019 16:18:39 -0700 (PDT) MIME-Version: 1.0 References: <20190602180057.GA4865@mit.edu> In-Reply-To: <20190602180057.GA4865@mit.edu> From: Amir Goldstein Date: Mon, 3 Jun 2019 02:18:25 +0300 Message-ID: Subject: Re: which lower filesystems are actually supported? To: "Theodore Ts'o" Cc: Marco Nelissen , overlayfs , Ext4 , Gabriel Krisman Bertazi , Eric Biggers 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. > [...] > > > > 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). > [...] > > 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. > My intention was not that overlayfs should support casefold, just that an isolated casefold subdir in an ext4 fs shouldn't make the entire fs not usable with overlayfs. Incidentally, we already ran into a similar issue with ext4 encryption. Issue was reported by OpenWRT developers and fixed by: d456a33f041a fscrypt: only set dentry_operations on ciphertext dentries I recon casefold is taking a similar direction to the fs/crypto library, so solution should be similar as well. BTW, is casefold feature mutually exclusive with encryption feature? Because if it isn't, d_set_d_op() in __fscrypt_prepare_lookup() is going to WARN_ON dentry already has ext4_dentry_ops. Thanks, Amir.