From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 91A3123B609 for ; Mon, 20 Oct 2025 02:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760926409; cv=none; b=SIwJNenatilZdAD0HNB5z+qB58Vh4dTWlSNqiM2jZe+Z5LvZ6zNuNGgIlJy6DWI1+eliYqDVKJMEyfbBFygYjJqccT9hMlb4GbKrsC6A8muNrfYRZfJQBaoULqVUP2vECAnjcrhSaxmL8cgSPnBcyFjpzh8GA/kDPc366Mt3YRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760926409; c=relaxed/simple; bh=pKjAvPilpvYO7Jqc8Cja9FjPI9P4hoIdJDieFWm0WiU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AV8rmJexXoG0qnvs7WfRDcku+7M9TOc25xMEO8soA0L8BUqQtr0wcXfPCZ2/ikAAImK5pbDaaQuGNYcoGh0Ficj5fpJdpU8ZNb0Coqcg8tlzsR7lOnscX13t2xeWYqx2gWmiQZNrdfaEluiEEcoPbCEZP/8HTs3TcpSUhPLHPnM= 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.210.175 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-pf1-f175.google.com with SMTP id d2e1a72fcca58-782a77b5ec7so3454672b3a.1 for ; Sun, 19 Oct 2025 19:13:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760926406; x=1761531206; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HmceufBWbFt/6jbFM7UlsShW+ci0E83Fk+RSbao9kcM=; b=hq6Z45DKrbF9Tkq2ozjnAwNQvmavZfHgZfGooetXSu/JUujUcwRX+7faEQjWqz2ngN 1ryWVI+keYf6EaaaZ9lx7hItTvDDQ5g+GU3kHONFcc0lqIlnpPo/IigcMRFSD9ZBm903 C4dQyzq+dNF3haVYxzAtZkIl0ZfUe1oCbL3CtFY/d1uvkn4zmuid6H67Lwwu4cgKilOF YjnyN50T9t8QkpjUg9Wgs0KOGpeqoN9y9dngHPP7f+wMpCGAgVyNclbf9Eyi9SU5+UMO UjFAPna+5LWk6kWMVEjD8yBmgBcwleet7l0zMFTx2kKi/JvBd1orwdTmuILxsXs+/CCq RR8g== X-Forwarded-Encrypted: i=1; AJvYcCUj1rgLvQz1EAuLrqLqYRsnTCPzvattkzXlCV3QwNnC1HxJcilBC36wsK3RyQ2NbhXMk/OSZJwszWdsaJE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5SEBmxCyswN59uUe7stOAk9TaLVdIjPTgdHAQfolmMhuDq2aM WFj/qzGCZGCYkXKG7ydbtjDp7ACjGLbO5+8/YNCLzlSub1fyFuIF7qp4 X-Gm-Gg: ASbGncuAqxsvvPcI4t6ux5pCKtutea2AdmGp8ya9Tkdi1dN0f+H25wgNqthyIwlLqCs qtprs00JdfwiTt+9+cBUwE7btYfL/0XkKtywEzLb/4gqKldMXyPC6+Z1wkl6QihayFek7Aqdcoq kXxbHXcIBs0rjAZNleHk08g/k3NZS0LqzdvCthnLVbN7F8aHPaPzXh3Pyq9xhWh6Qtb4RmcS4oS WYt2hlg6dIxdVox23k8h25s3989pB7L2uhenBzjBvSHUm9t9e7XkQXO8FJP/a5t/9130mhw/LT7 +9pASme43pnLo7H5DXOnPs4akXX+8AY+oPkMjD47Toujq89vrfUkDVBlZjOP8Y6awyrC1CESiTX bQjwRugYJ8wKoVhG+pCLbv36ZEJauxo74xHtvnLdl00L8jrME4+r9tjJLhd69sdL21m7J44rH6G 8mspaNINiZ571IxXI= X-Google-Smtp-Source: AGHT+IH/VWP7TZWHKAiIfbLLsoIQAFhHFivlRyqDMDn9BcgY57BaQ6LySkAtHNmr6Ox+Cz0wR0h+3g== X-Received: by 2002:a05:6a21:6da6:b0:263:b547:d0c3 with SMTP id adf61e73a8af0-334a85d9ef8mr14056890637.36.1760926406576; Sun, 19 Oct 2025 19:13:26 -0700 (PDT) Received: from localhost.localdomain ([1.227.206.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6a764508b0sm6406849a12.0.2025.10.19.19.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Oct 2025 19:13:25 -0700 (PDT) From: Namjae Jeon To: viro@zeniv.linux.org.uk, brauner@kernel.org, hch@infradead.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 11/11] ntfsplus: add Kconfig and Makefile Date: Mon, 20 Oct 2025 11:12:27 +0900 Message-Id: <20251020021227.5965-6-linkinjeon@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251020021227.5965-1-linkinjeon@kernel.org> References: <20251020021227.5965-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: 8bit This adds the Kconfig and Makefile for ntfsplus. Signed-off-by: Namjae Jeon --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/ntfsplus/Kconfig | 45 ++++++++++++++++++++++++++++++++++++++++++++ fs/ntfsplus/Makefile | 18 ++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 fs/ntfsplus/Kconfig create mode 100644 fs/ntfsplus/Makefile diff --git a/fs/Kconfig b/fs/Kconfig index 0bfdaecaa877..70d596b99c8b 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -153,6 +153,7 @@ menu "DOS/FAT/EXFAT/NT Filesystems" source "fs/fat/Kconfig" source "fs/exfat/Kconfig" source "fs/ntfs3/Kconfig" +source "fs/ntfsplus/Kconfig" endmenu endif # BLOCK diff --git a/fs/Makefile b/fs/Makefile index e3523ab2e587..2e2473451508 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -91,6 +91,7 @@ obj-y += unicode/ obj-$(CONFIG_SMBFS) += smb/ obj-$(CONFIG_HPFS_FS) += hpfs/ obj-$(CONFIG_NTFS3_FS) += ntfs3/ +obj-$(CONFIG_NTFSPLUS_FS) += ntfsplus/ obj-$(CONFIG_UFS_FS) += ufs/ obj-$(CONFIG_EFS_FS) += efs/ obj-$(CONFIG_JFFS2_FS) += jffs2/ diff --git a/fs/ntfsplus/Kconfig b/fs/ntfsplus/Kconfig new file mode 100644 index 000000000000..c13cd06720e7 --- /dev/null +++ b/fs/ntfsplus/Kconfig @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only +config NTFSPLUS_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 + ntfsplus. + +config NTFSPLUS_DEBUG + bool "NTFS+ debugging support" + depends on NTFSPLUS_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=1 + 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 NTFSPLUS_FS_POSIX_ACL + bool "NTFS+ POSIX Access Control Lists" + depends on NTFSPLUS_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/ntfsplus/Makefile b/fs/ntfsplus/Makefile new file mode 100644 index 000000000000..1e7e830dbeec --- /dev/null +++ b/fs/ntfsplus/Makefile @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for the ntfsplus filesystem support. +# + +# to check robot warnings +ccflags-y += -Wint-to-pointer-cast \ + $(call cc-option,-Wunused-but-set-variable,-Wunused-const-variable) \ + $(call cc-option,-Wold-style-declaration,-Wout-of-line-declaration) + +obj-$(CONFIG_NTFSPLUS_FS) += ntfsplus.o + +ntfsplus-y := aops.o attrib.o collate.o misc.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 \ + ntfs_iomap.o + +ccflags-$(CONFIG_NTFSPLUS_DEBUG) += -DDEBUG -- 2.34.1