From nobody Sun Feb 8 15:57:47 2026 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 1DD36346AC8 for ; Sun, 11 Jan 2026 14:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768141299; cv=none; b=iInrtZxXDhWYQfx3BBCWHlP5zTtXwewGuNA7LeZQ3wJ34/v7G0EjyHlMzc9jldf8BpX+ROCkMyIefwwBWZ6HsMuL7EkYA2Pvf5iVrlAP/v2uZIuUBQbJ+SYZLivnby+1sN5cmG2P8SplfyZOtCODjdkNiiipr5kT4vMM8/EyiSo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768141299; c=relaxed/simple; bh=twx+uRC8BuRfLHBYrr9hlzXztAFlz2+7S2jcIPWOYWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BxelpabEtECSNVce9aYBzZaIrADIh/fhKw7nKbjkdMlp84N4JswGy6ZYsnrRhqAEOE8zEZo9UjC0iAauH5ToFb0gMruwXgNNf7XpKfVzTLCDSrr1nFpT4aF7t1cJWF5LUOK8y2DSVVM/9EwV6Yu9SXXsi6ngKW9IPfVhMNKV6lw= 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.215.180 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-pg1-f180.google.com with SMTP id 41be03b00d2f7-c227206e6dcso3669878a12.2 for ; Sun, 11 Jan 2026 06:21:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768141297; x=1768746097; 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=Svb4Pq+zVfgjKQ73aCuT6vqlQ2sdsaz0ycFJLtTWkNE=; b=Y8QN3aNVeWXuHa7miaKn2/WgnLu7WujeF3LDBVBRVRSfgHpO08dL724es74NbP7z3m b43MfVrRwtYl5fujC3Dkc7U6fpKDNSivqy09ZZsNQe8DBxWwPKiGcpZEbGBsXqiHVrzL /da2z8uTb3LWZV7YoRGMVQPaCJHaYbaXTTuub+4JNGPJMoH69Czxfm2SVhT4ZHe7/GxV NoXkVLlNZJGEEs4eP/Jr7TeKjKdmAmsFkU2upQaJR53QucIG1yq4SB2kI+E6VX/rEqu4 OuH+pefZ3Ezs6BvYqobaWuO0bXzqq8Z9070149EAba8UhINViqhcmhAfB1p0RdwNUPNU d4cw== X-Forwarded-Encrypted: i=1; AJvYcCWzLpNtVxenMwRJPH9jJuo0wz3xRtdbRs5heyfsZ3FHJnZOXQpN16gqa+CRsFINnLcMR6wut+7PibGTsNE=@vger.kernel.org X-Gm-Message-State: AOJu0YxGOiKI9rEGcmqHyigliU6dMTx5uGqEiLYo/a4ogJJ5xMIowqe+ toEjBX0KwhCRb6OjzOEIGgJPCakCikdhs70rshDEc3yqEPFETremzJFZGOaFYw== X-Gm-Gg: AY/fxX6XHS60XpW0/mBbZPXmB27gm+23qmQtwqNAO58/bSwN6LvAug9aJ2IFzP0AP3G k6XBaiw7ZqJxgQJZN0NIbIEppg7f5OBIlGqryaILFLIWaVfEZ44Z+vNZo5jk7TSJAzo0N7g1Jn3 0JRAqaJJ/9erxff9hNS7hbdW7e9smV9DiU8776gwRltxDn6UsfHWqW681h2l9+u2rl0YxWlq9Ny x43ZhBxlUR436YW5IeuRZYZc/nZPEXP0mnS1tD814Af0IgiC3Ztq+ObnLDYpIzMnFbUMZtfxjPD +A8M5zE9k4wBbth+zte87FegZlZVKQRvK/gKceBjYjKS4W6MM1n6rCpBAf9IgkTsc+o4n6rrHNt z3K95/EAl23VPiPjaXsk2JoR6XQK7XthCcfpL42D0hM7vk3RXE6XREV+ySE1FAOkCubcqjEU+5A 6CChgiooUZKL8glI2jbJXJoGAX/GWwIfFIXo2S X-Google-Smtp-Source: AGHT+IG8L1MvN+BCL/5G1vZWCB3TpL9BDAhw4kfEtjpSMO7Y47xHRt2/GQ3bhEXFKsgs6UsAa9JZUQ== X-Received: by 2002:a05:6a20:3ca3:b0:366:23a6:c962 with SMTP id adf61e73a8af0-3898f91d1efmr15436484637.29.1768141297472; Sun, 11 Jan 2026 06:21:37 -0800 (PST) Received: from localhost.localdomain ([1.227.206.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cc02ecfccsm14887077a12.13.2026.01.11.06.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 06:21:36 -0800 (PST) From: Namjae Jeon To: viro@zeniv.linux.org.uk, brauner@kernel.org, hch@lst.de, tytso@mit.edu, willy@infradead.org, jack@suse.cz, djwong@kernel.org, josef@toxicpanda.com, sandeen@sandeen.net, rgoldwyn@suse.com, xiang@kernel.org, dsterba@suse.com, pali@kernel.org, ebiggers@kernel.org, neil@brown.name, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, iamjoonsoo.kim@lge.com, cheol.lee@lge.com, jay.sim@lge.com, gunho.lee@lge.com, Namjae Jeon Subject: [PATCH v5 13/14] ntfs: add Kconfig and Makefile Date: Sun, 11 Jan 2026 23:03:43 +0900 Message-Id: <20260111140345.3866-14-linkinjeon@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260111140345.3866-1-linkinjeon@kernel.org> References: <20260111140345.3866-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" This 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 Signed-off-by: Namjae Jeon --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/ntfs/Kconfig | 45 +++++++++++++++++++++++++++++++++++++++++++++ fs/ntfs/Makefile | 13 +++++++++++++ fs/ntfs3/Kconfig | 1 + 5 files changed, 61 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..6b49c99e4834 --- /dev/null +++ b/fs/ntfs/Kconfig @@ -0,0 +1,45 @@ +# 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, + and this option selects support for ACLs specifically for ntfs + filesystems. + 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..d235ce03289e --- /dev/null +++ b/fs/ntfs/Makefile @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for the ntfs filesystem support. +# + +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 + +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