From nobody Mon Feb 9 00:55:05 2026 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F6B38F936 for ; Wed, 4 Feb 2026 08:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770195154; cv=none; b=YgH2JdidV5wbjGmrtT7Qxa5Huf2T2CtaiFPTby77kcMBG3he/KN0D09vVcNGDP4j0TpfE75wm1NCW3HG9xJGqVUtWWu38rLVY3VdAYBd/fvchAkqQSsFs3+KYqVCEAWM33PftrQ/95JvbV+MiDixo164qcavTSKsoa2NGVPN7Cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770195154; c=relaxed/simple; bh=ABqpm92OD3lEo0c3q6BtDa7poVieoTG+ZeVNg26XBWo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fB91RbuX3i+flj+IesK6fLffso8hhIRhrd3StiL6sqTrUcz9Nu1X4QrhQttPaa5Yhq6atwQN+FTXLHRacdh9kf+/+NeRMcbTzHM3qT9ayDL8QqpEMyZ/ID+WpFY2xrmQ9ysqaIrhGmbsks0QSYO9wQPZPp3jViDyDpgvRwQbmtw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2a871c8b171so39139175ad.3 for ; Wed, 04 Feb 2026 00:52:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770195154; x=1770799954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=m7vLKFQBW4UE6h3h/wPYkOdCPiFa+msaz2jA5YP1ydQ=; b=cVrT6uvj20n0bLlGz3ope/fPgitK4k2o+xIF25RNjR+vUofZQsdDsVd8n6Cx7B4LZ2 K7+oaMfqrVQp9IFpLqp26DVRpWO1Zxd1S1Z9CSdXJFS/8fvzMWCXauAnt0qGY5xUCQNb u00/5oQfDaMQQkRyWI8joYdc3l2XQeQgqEZ0fUJKCKnmuEROFc/OeX2t8bjNDqJALqim OTATf04AH6AC3T8sjyuoDfsuXF80iO4ce9ejfc0btfadPnpm1S+HbNQTj6F1DM5jjAQ5 PA5IcTRBAX7bM88ru8r6ckEHMRO/HlY/VPYJec6zCdlBM2jl213HvCkn8LbuLv6ySePe R9jw== X-Forwarded-Encrypted: i=1; AJvYcCXY4MA1HmmIPHTSmO6vJxTM89FZaa1z7B6OpMAUb+f5vt6K9+HQ3qmY7k1gYNX98H3SOhIV/AusSZGgyKU=@vger.kernel.org X-Gm-Message-State: AOJu0YzNfvpJImJ/YBCEvHKNIFdDCrdaHgTd7IIXy2s+uvuFtY8N4PG5 Yv0TGwW3kWDfWKNv4Sko6+/IYqvLal65apnlm3BnkzSPA/2Yls0gdGzwVeWRIQ== X-Gm-Gg: AZuq6aLR/qBZPTdIJTUZLBscarMhqSFbGoX3zk3A1HXKFZFoF0QlakbovF56kuaOX9z n36BDhbW3pwdwS90xbbbvARs9aK59HT5RD0kc6cqP8LuOO0TYC/UKDmD2qnodl8fszd/DyOssTl QCYjn7bDS24dDTJ2Wkjs/fjx0F79aYfdtcUa872QtBTscJXPIGxmOzX8+6K+DCMRfjjebGWh6mh Xeg0Zp0Ek/4nvKdgydW5ccSrBxkfORRDl88T7nISRS448DS8SefQZXXHclJsbqofIqCMwj/E7hk cWpiCHktNEnUsTGZI84pmjWTDgLaMURbcqUDg6wMtAPSo9DlXA4wNqAcza96v5vKc5ZnqjC3apc 5Thgte0Ae4JIFan2qGJ06i3I5heCJDe9a+ZMXYJs7GSS2pa1q+F8YJu0aaU9oy6m23n/k7301iq opnKdJT7XU/el5CO6FpuWwpwAQLQ== X-Received: by 2002:a17:902:ced0:b0:2a7:3dbe:353d with SMTP id d9443c01a7336-2a93411169dmr24254605ad.53.1770195153721; Wed, 04 Feb 2026 00:52:33 -0800 (PST) Received: from localhost.localdomain ([1.227.206.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a933851270sm16847735ad.2.2026.02.04.00.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 00:52:32 -0800 (PST) From: Namjae Jeon To: viro@zeniv.linux.org.uk, brauner@kernel.org, hch@lst.de Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Namjae Jeon , Amir Goldstein Subject: [PATCH RESEND v7 15/17] ntfs: add Kconfig and Makefile Date: Wed, 4 Feb 2026 17:29:29 +0900 Message-Id: <20260204082931.13915-16-linkinjeon@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260204082931.13915-1-linkinjeon@kernel.org> References: <20260204082931.13915-1-linkinjeon@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Introduce Kconfig and Makefile for remade ntfs. And this patch make ntfs and ntfs3 mutually exclusive so only one can be built-in(y), while both can still be built as modules(m). Reviewed-by: Amir Goldstein Reviewed-by: Christoph Hellwig Signed-off-by: Namjae Jeon --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/ntfs/Kconfig | 47 +++++++++++++++++++++++++++++++++++++++++++++++ fs/ntfs/Makefile | 10 ++++++++++ fs/ntfs3/Kconfig | 1 + 5 files changed, 60 insertions(+) create mode 100644 fs/ntfs/Kconfig create mode 100644 fs/ntfs/Makefile diff --git a/fs/Kconfig b/fs/Kconfig index 0bfdaecaa877..43cb06de297f 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -152,6 +152,7 @@ menu "DOS/FAT/EXFAT/NT Filesystems" =20 source "fs/fat/Kconfig" source "fs/exfat/Kconfig" +source "fs/ntfs/Kconfig" source "fs/ntfs3/Kconfig" =20 endmenu diff --git a/fs/Makefile b/fs/Makefile index a04274a3c854..6893496697c4 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -90,6 +90,7 @@ obj-$(CONFIG_NLS) +=3D nls/ obj-y +=3D unicode/ obj-$(CONFIG_SMBFS) +=3D smb/ obj-$(CONFIG_HPFS_FS) +=3D hpfs/ +obj-$(CONFIG_NTFS_FS) +=3D ntfs/ obj-$(CONFIG_NTFS3_FS) +=3D ntfs3/ obj-$(CONFIG_UFS_FS) +=3D ufs/ obj-$(CONFIG_EFS_FS) +=3D efs/ diff --git a/fs/ntfs/Kconfig b/fs/ntfs/Kconfig new file mode 100644 index 000000000000..e5fd1378fbbf --- /dev/null +++ b/fs/ntfs/Kconfig @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only +config NTFS_FS + tristate "NTFS file system support" + select NLS + help + NTFS is the file system of Microsoft Windows NT, 2000, XP and 2003. + This allows you to mount devices formatted with the ntfs file system. + + To compile this as a module, choose M here: the module will be called + ntfs. + +config NTFS_DEBUG + bool "NTFS debugging support" + depends on NTFS_FS + help + If you are experiencing any problems with the NTFS file system, say + Y here. This will result in additional consistency checks to be + performed by the driver as well as additional debugging messages to + be written to the system log. Note that debugging messages are + disabled by default. To enable them, supply the option debug_msgs=3D1 + at the kernel command line when booting the kernel or as an option + to insmod when loading the ntfs module. Once the driver is active, + you can enable debugging messages by doing (as root): + echo 1 > /proc/sys/fs/ntfs-debug + Replacing the "1" with "0" would disable debug messages. + + If you leave debugging messages disabled, this results in little + overhead, but enabling debug messages results in very significant + slowdown of the system. + + When reporting bugs, please try to have available a full dump of + debugging messages while the misbehaviour was occurring. + +config NTFS_FS_POSIX_ACL + bool "NTFS POSIX Access Control Lists" + depends on NTFS_FS + select FS_POSIX_ACL + help + POSIX Access Control Lists (ACLs) support additional access rights + for users and groups beyond the standard owner/group/world scheme. + + This option enables ACL support for ntfs, providing functional parity + with ntfs3 drivier. + + NOTE: this is linux only feature. Windows will ignore these ACLs. + + If you don't know what Access Control Lists are, say N. diff --git a/fs/ntfs/Makefile b/fs/ntfs/Makefile new file mode 100644 index 000000000000..0ce4d9a9388a --- /dev/null +++ b/fs/ntfs/Makefile @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_NTFS_FS) +=3D ntfs.o + +ntfs-y :=3D aops.o attrib.o collate.o dir.o file.o index.o inode.o \ + mft.o mst.o namei.o runlist.o super.o unistr.o attrlist.o ea.o \ + upcase.o bitmap.o lcnalloc.o logfile.o reparse.o compress.o \ + iomap.o debug.o sysctl.o quota.o object_id.o bdev-io.o + +ccflags-$(CONFIG_NTFS_DEBUG) +=3D -DDEBUG diff --git a/fs/ntfs3/Kconfig b/fs/ntfs3/Kconfig index cdfdf51e55d7..876dbc613ae6 100644 --- a/fs/ntfs3/Kconfig +++ b/fs/ntfs3/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config NTFS3_FS tristate "NTFS Read-Write file system support" + depends on !NTFS_FS || m select BUFFER_HEAD select NLS select LEGACY_DIRECT_IO --=20 2.25.1