Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp212851pxb; Wed, 3 Feb 2021 03:47:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyh0cITv8D4jg3fFd36ycldsFUtxIu0Eu3f97YG+dcnSx+aP/dGOI1R0ZZ2JvjjKzIehBY6 X-Received: by 2002:a17:907:210e:: with SMTP id qn14mr2889544ejb.237.1612352848064; Wed, 03 Feb 2021 03:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612352848; cv=none; d=google.com; s=arc-20160816; b=CYNyHXJgE0oUyUKJFqyZxxl/ZJPW/NNfboHjOjjGAPZTa6W6O78wrcpjWJQKw5FQco IYDd3EshEyRPVjCJL4U8wo/D0LAsZvmomSTIC+/03cljCId77fdXT2N8w62egwLbm7+a ns/MZ2MU6ICFDY7Nge19FIDWCBUi9gLycXXRNDHzPixFo/uX/kwmjUT59I6XMGldjPHJ uLPqauJXATXCa+71QfG2AOE3uXgv7KQW+bJDhvuVgYk3N3RCoXwpnsbtu8Y6bostJq5n vBNBQyEK9LolI6q3BtdlOTXVpY8mServHfrYIAwduy7+udszdciHIjcx99/9fCEe3w6i LqLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=0fZRXtXxDmQ/PG8ZhbNTsY9wLwgVOXyHP1wEYobYlhw=; b=H5b6wohb22MFADDBGOMtS12Jk6o1vM60PeLTvRch/piOMbHhvfAfg2bwPJd/LncOqv +FyauExECXK1HJ8ShAsEuQ3/MoAo4VlL4zT8L5a9/KsgVSVjh4X/DsqNX8KDzKEnP7Hn ujDL7ukCzHgkfjyyhAjo3K83xtcg3cfZb1OOmXBLgjss1O1gfFsquLYvqF78DT7Rngaq sTD26oTeEyNTrGbCqw+Owb0V77YYO8zeJlikxbmWOi4yw9s9IlNZBn6kpsL/dP6qciZ7 ariJiAiQNNqv5OCWfYsYUWAmjy6GVtNcJ9ZXcUI9BzCfGvDXlesYCOFpi5rawtDkPEQD KNUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=2HUmN8tY; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu13si1033714ejb.351.2021.02.03.03.46.59; Wed, 03 Feb 2021 03:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=2HUmN8tY; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234347AbhBCLoN (ORCPT + 99 others); Wed, 3 Feb 2021 06:44:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234463AbhBCLnn (ORCPT ); Wed, 3 Feb 2021 06:43:43 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF07AC061573 for ; Wed, 3 Feb 2021 03:43:02 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id my11so3301907pjb.1 for ; Wed, 03 Feb 2021 03:43:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=0fZRXtXxDmQ/PG8ZhbNTsY9wLwgVOXyHP1wEYobYlhw=; b=2HUmN8tYQ6CqHpvL8MoXQbNiYfPxpMrgi69NqB8d361hkPl4yfXZIjpOgakeJSQVCs 3MnvOJoAxS6sb8hYihyQe705hzQ9viI2dSqi97gbMLO2Min7t6vTCewGYuhrOeSWUrb/ vkC8clsAm5lCr8Q7DDnJ8VQyCcD71D3VMQD/3BtJNWe7+Fbziv8GL+S7cgzAMWTZAbMY tK5iPs4bvP1gwzzzmOXN6efbKmxYq3e2u2hUKiQuaRauy4Fz1+ROPnE8l0vF+JB2aRTt PauSIt0A8RmQYvnJuxCP3Gpi9J5v66b0QmbuR9lGWKuFTQ07RYwNeEE6nKJL3h8QljHS EiPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=0fZRXtXxDmQ/PG8ZhbNTsY9wLwgVOXyHP1wEYobYlhw=; b=rTAPu9kLh6dcUFo910AdFF2G752FAs9WJrKRLltE/7KPX5FqQC5jLQfxOof2/+mfr4 qTzmR/SrSIy+9gQIz8NtftTDrJo01apWhGX3UPpTXwxQGb9lkmXYMiS98MLq/8ZXDBLl feJqozoILQGCCl0B2jGh+gp4ZEJq6oi8hzpO8TnsAWpWd5T+qUgG3V7OBsS8CSdln3z0 cqSjxpkFmO+bV+fnnFbk9/YUEPr4qC/6Jso45XUHnaesFioCfczEQ1SVIrDMWuzfLgyT DE0WkKkH7P/mOZayvdJBnmEDUHaiOpJg7YoJIP91UeVw8jCMXD9e/mayNucvp3uX/GJA mopA== X-Gm-Message-State: AOAM5313Q/5JqVfBK2ElvTmXWajwal+4HZQCemeWHHN3vEx+2kJ4tHGe 4qfmci179oFxuJw2WKD/Fv6VRc+JYl4Nnc1y X-Received: by 2002:a17:90a:1a01:: with SMTP id 1mr2754434pjk.21.1612352582444; Wed, 03 Feb 2021 03:43:02 -0800 (PST) Received: from [192.168.10.175] (S01061cabc081bf83.cg.shawcable.net. [70.77.221.9]) by smtp.gmail.com with ESMTPSA id n17sm1804725pjv.20.2021.02.03.03.43.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Feb 2021 03:43:01 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andreas Dilger Mime-Version: 1.0 (1.0) Subject: Re: [ANNOUNCE] e2fsprogs v1.46.0 Date: Wed, 3 Feb 2021 04:43:00 -0700 Message-Id: References: Cc: linux-ext4@vger.kernel.org In-Reply-To: To: Theodore Ts'o X-Mailer: iPhone Mail (18B92) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Feb 2, 2021, at 10:36, Theodore Ts'o wrote: >=20 > =EF=BB=BFI've released e2fsprogs 1.46.0 in all of the usual places;=20 >=20 > E2fsprogs now supports file systems which have both file system > encryption and the casefold feature enabled. This requires Linux > version 5.10. Gah! I just noticed these patches being submitted to the kernel, but they break the dirdata format in an incompatible manner. I hadn't been paying close attention to casefold + encryption since I thought it was only changing the hashing function and not the actual dirent format, and I didn't see these patches to e2fsprogs being submitted to the list (I couldn't find them in patchworks either). Since this hasn't been landed to the kernel yet, and 1.46.0 was *just* released, can we roll this back and instead make the extra hash stored in a dirdata field? Preferably #3, since #1 is the Lustre FID, and #2 was proposed for the high 32 bits of the 64-bit inode number (though it was never landed and I don't think it is in use anywhere). Having just looked at these patches for the first time, I can't say for sure= , but it looks like only a small on-disk format change would be needed to make both features compatible with each other.=20 There would need to be a bit set in the dirent type field to indicate that there is a hash stored after the name: #define EXT2_DIRENT_HASH 0x40 and the length of the hash field would be stored as the first byte. Since th= e hash is stored aligned on a 4-byte boundary, the length is variable (8+alignment), but storing the length at the start would not add any more space for 3/4 of the names due to the existing padding for alignment.=20 Cheers, Andreas=