Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp237035rdb; Thu, 22 Feb 2024 02:00:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdM7hfE4s1m/cgPbsn/vLEaHcrI+HtexjkbODURQVtkv98iZ8eR6FWf2BQC93sT5mclJ3aICfVSCreaJMhBZYtVcmwYA5Uh+r9vMwsBw== X-Google-Smtp-Source: AGHT+IHgwopSgibf4GccxEO/EKdnZv5MSKNxup/R+AA9vha8m8tAixx6oC4eNk5oxVTDoedFcL/K X-Received: by 2002:a05:6870:d253:b0:21e:a2c0:b94b with SMTP id h19-20020a056870d25300b0021ea2c0b94bmr13196186oac.54.1708596030676; Thu, 22 Feb 2024 02:00:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596030; cv=pass; d=google.com; s=arc-20160816; b=sB9xJMQqFG4R8wcy1WbmI6Y7hiMxt2wMT7gL2pXP4ATmWa7cWU6RP9+8BMB4VXMn7e W4FLI1EWOuso1ECM4H99xEBWXD/Bq904xeE8iuPbSMRiU1UOxKx8xU48scpvDkPScX75 p1Obdl645HQmTImC06lJwNd8wOuUS/aT9FpSliPCaVoguIxzQEEKr0cOE0LBZNoUmRkl Tw6tYjuzWWbvtodmnEitkLBqEO6B7zWGrhCHfAWIXmjagSSoXQg762K39bfaNuuNYh4H Sr9bPXDSrpn3+eL5TixUbikAd3m2pq0t4kHuVnDTfKPdG1xE8uhsgvirwZ0dmkHaOrIv C6FQ== 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=mJtisGxKYSAN8dLmwD6Rpr348hPgMkL6jSyJn2v4sQNDjPgRWsYaJ54fskCAWXDVIw 9UrLSeqszySLOq0HrBfWq8YQ+1xJxne0bvDd1xoRjK3lvgMf+GHoGlTE3JLLXftkDITe k/h5nKFJiTAwogsdD93hvUj6zjq0QA/U+13GvHbijNjGdHe5i5awl6wOVqArMHUxSOul 9SFZSvYOSRx6kZD5OeemVrk7yvDuiOfr9uAlO625KkmkAup6cN/nFPcdPrT8AMgJW45B OcPvNGAd8bKbreP30Wk2CcHsH7EpPsBbwar68vXeRBTwHhpFNPBYI02hqzAD2ffF2pvT 0lBA==; 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-ext4+bounces-1356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cl23-20020a056a02099700b005cf5bf8e7a5si10206176pgb.430.2024.02.22.02.00.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:00:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-ext4+bounces-1356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1356-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9245728B2EA for ; Thu, 22 Feb 2024 09:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63616383BA; Thu, 22 Feb 2024 09:50:30 +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" X-Original-To: linux-ext4@vger.kernel.org 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-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: michael.opdenacker@bootlin.com 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" -- 2.34.1