Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntfs: add Kconfig and Makefile

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 <amir73il@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>

+60
+1
fs/Kconfig
··· 152 152 153 153 source "fs/fat/Kconfig" 154 154 source "fs/exfat/Kconfig" 155 + source "fs/ntfs/Kconfig" 155 156 source "fs/ntfs3/Kconfig" 156 157 157 158 endmenu
+1
fs/Makefile
··· 90 90 obj-y += unicode/ 91 91 obj-$(CONFIG_SMBFS) += smb/ 92 92 obj-$(CONFIG_HPFS_FS) += hpfs/ 93 + obj-$(CONFIG_NTFS_FS) += ntfs/ 93 94 obj-$(CONFIG_NTFS3_FS) += ntfs3/ 94 95 obj-$(CONFIG_UFS_FS) += ufs/ 95 96 obj-$(CONFIG_EFS_FS) += efs/
+47
fs/ntfs/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + config NTFS_FS 3 + tristate "NTFS file system support" 4 + select NLS 5 + help 6 + NTFS is the file system of Microsoft Windows NT, 2000, XP and 2003. 7 + This allows you to mount devices formatted with the ntfs file system. 8 + 9 + To compile this as a module, choose M here: the module will be called 10 + ntfs. 11 + 12 + config NTFS_DEBUG 13 + bool "NTFS debugging support" 14 + depends on NTFS_FS 15 + help 16 + If you are experiencing any problems with the NTFS file system, say 17 + Y here. This will result in additional consistency checks to be 18 + performed by the driver as well as additional debugging messages to 19 + be written to the system log. Note that debugging messages are 20 + disabled by default. To enable them, supply the option debug_msgs=1 21 + at the kernel command line when booting the kernel or as an option 22 + to insmod when loading the ntfs module. Once the driver is active, 23 + you can enable debugging messages by doing (as root): 24 + echo 1 > /proc/sys/fs/ntfs-debug 25 + Replacing the "1" with "0" would disable debug messages. 26 + 27 + If you leave debugging messages disabled, this results in little 28 + overhead, but enabling debug messages results in very significant 29 + slowdown of the system. 30 + 31 + When reporting bugs, please try to have available a full dump of 32 + debugging messages while the misbehaviour was occurring. 33 + 34 + config NTFS_FS_POSIX_ACL 35 + bool "NTFS POSIX Access Control Lists" 36 + depends on NTFS_FS 37 + select FS_POSIX_ACL 38 + help 39 + POSIX Access Control Lists (ACLs) support additional access rights 40 + for users and groups beyond the standard owner/group/world scheme. 41 + 42 + This option enables ACL support for ntfs, providing functional parity 43 + with ntfs3 drivier. 44 + 45 + NOTE: this is linux only feature. Windows will ignore these ACLs. 46 + 47 + If you don't know what Access Control Lists are, say N.
+10
fs/ntfs/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + obj-$(CONFIG_NTFS_FS) += ntfs.o 4 + 5 + ntfs-y := aops.o attrib.o collate.o dir.o file.o index.o inode.o \ 6 + mft.o mst.o namei.o runlist.o super.o unistr.o attrlist.o ea.o \ 7 + upcase.o bitmap.o lcnalloc.o logfile.o reparse.o compress.o \ 8 + iomap.o debug.o sysctl.o quota.o object_id.o bdev-io.o 9 + 10 + ccflags-$(CONFIG_NTFS_DEBUG) += -DDEBUG
+1
fs/ntfs3/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 config NTFS3_FS 3 3 tristate "NTFS Read-Write file system support" 4 + depends on !NTFS_FS || m 4 5 select BUFFER_HEAD 5 6 select NLS 6 7 select LEGACY_DIRECT_IO