From patchwork Thu Feb 22 09:50:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: michael.opdenacker@bootlin.com X-Patchwork-Id: 204654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp143427dyb; Thu, 22 Feb 2024 01:50:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXt2Zvz635324HZaeiHPN3Ku5rupNdDOCzDQUpOp6bG+MCQEhxNtxiCNJdZbvOoTKttXDkO4VmlDbEQ3GCgtPXFJRvMQ== X-Google-Smtp-Source: AGHT+IHOYSSxFIjjG6cKNhV/szozyMLa/2tLtJVpB0WZTej6Hup8gQHOnUSsFp3VW+qoAwOMCsQO X-Received: by 2002:a17:906:78b:b0:a3e:7ad2:63ed with SMTP id l11-20020a170906078b00b00a3e7ad263edmr8988619ejc.64.1708595446178; Thu, 22 Feb 2024 01:50:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708595446; cv=pass; d=google.com; s=arc-20160816; b=AUNhEPljbD40RkkGdR/B3QPNyvbjoadXlO4I5h223KKzUw9WxQmkFAXsa5uQk8K/Fl JT5yzrefiZHwUoGkrMccXwEXiHd9TLwT1sGOuwJhpid8Nq9+AmACiUImVa1z5SPl9cqi LMBr6DLSAsjnwkmJbZWTUF/TLgG/a30YZEWNIiY7iL0onvGMgcIZNuwSDH+b0rXq3Rw9 LKM+kZNySfwQtUyhJzQGu5c5OEF1dy2JpN0ZWrzN2y+J1TsXGcp0rC6E7iLtmlLkFjXY sR4Duua3RmvShrFQ0pHYLbSLva7PllVRF4UW6fyZ5cnjrppQrDS97Pfmaf//L8ZiSK1K MLDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=hGYuUJFgrI15CK+VXlL89d6fj/B/fl7Hd4ibHpQQ3KA=; fh=5vAtPYYp7oys26T5mGQCOsm3U0Raac6kbhs55Xft5VI=; b=s5YRQeHH1NQZM2Iwghopa2+oi/MleHfoSfCNNfn1i4+XmHxAPSSRVezDXQnqYghVFa rcOt2sB7vECo9VPIj9C2s6SkBa2kevVnZAFlBQXPgTI1XwsxE8Eprg4uIe3iPpcRkIr3 7EFZIi1ULVzadtTWdPBtC/7n2+dxUKS0rka+RZ+4xMvsk9AiWloTruTPQ4Bl8g9JQkTi utR7CPP2SdbRKfP6M1tGxJN4OX1Mutp07nkFwtDGIq9kCULIxlrvqlxHkVP202D6EkSl vj70S22ikDMAKsJ5CxOl2yeoSjjxmVv5Uo1HFLhv2sC7JuyEirTfHh1NG2XjPDGlE//g bT9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SGMMX+tU; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76273-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76273-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t21-20020a17090616d500b00a3e5bd0e157si4280610ejd.873.2024.02.22.01.50.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 01:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76273-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SGMMX+tU; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76273-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76273-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8D63E1F25FEA for ; Thu, 22 Feb 2024 09:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7100139864; Thu, 22 Feb 2024 09:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SGMMX+tU" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FD6D3838B; Thu, 22 Feb 2024 09:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708595430; cv=none; b=cuucCXjH/BiJUPXaLTdTuytRDgFgJDuaa23+xSjTHf8ZPH3YV71Muu9s/Oy1mYDmuYjnUc7a0uFNz1I7zIy62De085nNFP6fKI6jOdHh72ptzasdSyJRoGHRzV0iT6G6OUnbsSrjA++ypP+P9JXWKUFeaXlGqSw8mR5BObwQwDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708595430; c=relaxed/simple; bh=wuS36pgyjSNs/ogediuzQ/fu3+v3MZF+PzsLiJWfCaE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sXO1azEauqScAfhw1mjGUyHHx0RrOMDnAY87iIzLfOXbwo+Or1PnhYuD0AXuaaO5buqMKF0HGU8G3EBwiOuBstvper9g8J5ePJ54rh/QX1JXrRWLr+gzlfMJ1rUq/pJbfcoA1YQVf9Szsa5AwWzCPc3mrGTnKcJAfLYwShhbmp8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=SGMMX+tU; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 89452C0005; Thu, 22 Feb 2024 09:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708595425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hGYuUJFgrI15CK+VXlL89d6fj/B/fl7Hd4ibHpQQ3KA=; b=SGMMX+tUc+sP2bykHxfLsuxEN+EsguNYlYz7vz798IulInkM0flyvlMsF1z01uuwex3ITm vF6ey8B9W4r4C/osNoMy6FcxX/h5fu9rXHDl/AHyBMjBI53qgaVzY3f5nyN1r9vMad7OH1 Wlu+RWr/ByatFEApwGI6+PoCJz/DC8cph17OyqdD/0J0Lf1vCePfGbqbJkk9t1hzRWpYdx +XWaaqmgC5SPNoKerh6O/cBJXMIYJRortoGzoMO3a+LwPkZHmA5mJYo7J+jMcouJl6eQEC 1unoDOE9SLCFktt6TJ3cD/X0Jp0kRE/NxbsAsihec4zQ2SY0eMriskHURHo+iQ== From: michael.opdenacker@bootlin.com To: jack@suse.com Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Opdenacker Subject: [PATCH] ext2: mark as deprecated Date: Thu, 22 Feb 2024 10:50:01 +0100 Message-Id: <20240222095001.137660-1-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: michael.opdenacker@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791592178581924667 X-GMAIL-MSGID: 1791592178581924667 From: Michael Opdenacker Add a DEPRECATED keyword to the kernel parameter description, to warn users that this filesystem doesn't support dates beyond 2038. Signed-off-by: Michael Opdenacker --- fs/ext2/Kconfig | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/fs/ext2/Kconfig b/fs/ext2/Kconfig index 74d98965902e..49e4660ae436 100644 --- a/fs/ext2/Kconfig +++ b/fs/ext2/Kconfig @@ -1,16 +1,30 @@ # SPDX-License-Identifier: GPL-2.0-only config EXT2_FS - tristate "Second extended fs support" + tristate "Second extended fs support (DEPRECATED)" select BUFFER_HEAD select FS_IOMAP select LEGACY_DIRECT_IO help Ext2 is a standard Linux file system for hard disks. - To compile this file system support as a module, choose M here: the - module will be called ext2. + It is deprecated because even if the filesystem is created with + 256 byte inodes (mkfs.ext2 -I 256), the filesystem driver will stick + to 32 bit dates. Because of this, this filesystem does not support + dates beyond 03:14:07 UTC on 19 January 2038. - If unsure, say Y. + Ext2 users are advised to migrate their partitions to ext4: + + $ tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda1 + $ e2fsck -pf /dev/sda1 + + Ext4 is also a working solution for very small partitions + as it can be created without a journal: + + $ mkfs.ext4 -O ^has_journal /dev/sda1 + + This code is kept as a simple reference for filesystem developers. + + If unsure, say N. config EXT2_FS_XATTR bool "Ext2 extended attributes"