From nobody Mon Dec 1 22:35:44 2025 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 2B88130F92B for ; Thu, 27 Nov 2025 05:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764219694; cv=none; b=RVXjP21MVKwYPx9zStkHQNoLSxQ3GmUFpMDFbehrJs7SIi3safz8ppHO/EQPwykWcHhVOhQLj2dCTkqQHEDKoN6V9UxFDKBXbDSAZ79hzOtq2zMOhqObPslnVYlcdLWJfOfQPrO5CSFytO4mgRxnREwdArwhYCWCnZKggnGboj8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764219694; c=relaxed/simple; bh=n5b/MQre1QxLtg9Zn1TXSpWNvwaGErlBIH1V1qOd5wk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n/N2AEmVE4Hba2jp0o8E72eFzMIYV6UEvJq9Am3wNzwcwXXeEER0g6dWW+2o3tMhht+g0PSJNCBXKOSQvrrR5oWyDl7RQh5g9UpUENT0o0sPmn5MjGSoU5g1M9pQBb8O3RufMiqLZbL36O2DrY78SEAKQcyV/LkMveeWwP16x0k= 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.181 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-f181.google.com with SMTP id d9443c01a7336-29568d93e87so4565035ad.2 for ; Wed, 26 Nov 2025 21:01:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764219689; x=1764824489; 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=M8EtTs8rd1c6lDJ+HYVOpgm4BMVT9cA8PtoqZF5AUvk=; b=v8xFegFFeNBKZtUhfpgArN5dmAnOe+cFsSlz3SMCMrRQPlBMjRN1NE2NTILrmvejYs G0D3UFB4Pa9caYyPQ05ko3qH83oMIUckfrk62ewK0PQrAOkedANAcsqYzsZ1Tb3tTwl4 skXOyOMB8USTIW7l4+6dJUsRntSLoIccrd4VwKpCn6xV823v4QD131p3Cu+2OW+O5fGK FQ+ajZXzUpuX02LhRuksPfUGPPUsSnlMmKXesrDtqaWLuGECplSGPKs2ue1Fjn/hacxv p1KeOVN2Yo1PuAHcXgzAMr+aihFT3CTheBakiOXmJPz6Pujj1192l1hkZxyo+GWoz/g+ qDCw== X-Forwarded-Encrypted: i=1; AJvYcCXgvmheHMC8y1sBqoX8Gh6Nia0JRdmoGzJ84VeyyykzkubbIVT2P5iEWq1mgPa2aemrG/tiHeQbcczwrnk=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3EDq5ywJvatc7LGhn/Al/fPUZVQHhEImdxfxhXjSCl7XIfrBR aVj7z5vA/LtgQPwbPN3vhnLmfkiTFceijz/ce7yfBfRDlq4WWtothXt0 X-Gm-Gg: ASbGnctL2NYwODGRV/Va5bprHoJ6UDSJllIkoOphY3KACM0vPKToqJX6UMkyXAYIs5i b7cm+hPzHGiykXUDFf8JzZaaGda23VGxQmkdmorXB23SJU8MOxPZK7I2tHA2UGIZKC2qAR/7NCk FlDJ4JvCPkDH8PLwVmWf9wYRrvwKdbmjYIdisrO203sbdQ7914VCXk9Fv2n3U4TOUccDIOKfE8G fHw4mcqnwOSyg+TnqSEjjcmtC61GoRYj6JxzZtGEjL6wRvdRv0bb83y62Lp18UPKnt9icxUNTyy 4LHD+T0qT4F5vMFaFLCRBEQLkHEL9MeBSN5rhevq5+fsC71np0Aviht1plQ46KVoUj/Kuv5+nsS kGsTJYwIf886+h1e8gAahLpBlELYiiaOKeoOcFMGL+TGb0xRCNidtD45D/naaSffvs4QsgC0pcH a98Qeecf6OR5GxFyf6slas7lpwHA== X-Google-Smtp-Source: AGHT+IEYAB2a0oO7i5VPi5Akwg5ZUKtDBsMvjSRBiWzLidc/hVipMcno2poMfBe2U+PggXu4ab/YZQ== X-Received: by 2002:a17:903:11c7:b0:295:5972:4363 with SMTP id d9443c01a7336-29baacae71emr114911405ad.0.1764219689255; Wed, 26 Nov 2025 21:01:29 -0800 (PST) Received: from localhost.localdomain ([1.227.206.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29bceb54454sm2719825ad.84.2025.11.26.21.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Nov 2025 21:01:28 -0800 (PST) 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 v2 11/11] ntfsplus: add Kconfig and Makefile Date: Thu, 27 Nov 2025 13:59:44 +0900 Message-Id: <20251127045944.26009-12-linkinjeon@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251127045944.26009-1-linkinjeon@kernel.org> References: <20251127045944.26009-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 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" =20 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 +=3D unicode/ obj-$(CONFIG_SMBFS) +=3D smb/ obj-$(CONFIG_HPFS_FS) +=3D hpfs/ obj-$(CONFIG_NTFS3_FS) +=3D ntfs3/ +obj-$(CONFIG_NTFSPLUS_FS) +=3D ntfsplus/ obj-$(CONFIG_UFS_FS) +=3D ufs/ obj-$(CONFIG_EFS_FS) +=3D efs/ obj-$(CONFIG_JFFS2_FS) +=3D 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=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 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 +=3D -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) +=3D ntfsplus.o + +ntfsplus-y :=3D aops.o attrib.o collate.o misc.o dir.o file.o index.o inod= e.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) +=3D -DDEBUG --=20 2.25.1