📄 kernelpatch
字号:
diff -ur linux-2.1.72.0/Documentation/Configure.help linux-2.1.72.new/Documentation/Configure.help--- linux-2.1.72.0/Documentation/Configure.help Thu Dec 11 22:35:13 1997+++ linux-2.1.72.new/Documentation/Configure.help Fri Dec 12 16:58:26 1997@@ -4725,6 +4725,20 @@ want). The module is called hpfs.o. If you want to compile it as a module, say M here and read Documentation/modules.txt. If unsure, say N.++Windows NT NTFS support (read only)+CONFIG_NTFS_FS+ NTFS is the file system of Microsoft Windows NT. Say Y if you want+ to access partitions using this file system. The Linux NTFS driver+ supports most of the mount options of the VFAT driver, see+ Documentation/filesystems/ntfs.txt. There is an experimental+ write support available; use at your own risk.++NTFS read-write support (experimental)+CONFIG_NTFS_RW+ The read-write support in NTFS is far from being complete and well+ tested. If you enable this, be prepared to recover the NTFS volume+ from tape. System V and Coherent filesystem support CONFIG_SYSV_FSdiff -ur linux-2.1.72.0/fs/Config.in linux-2.1.72.new/fs/Config.in--- linux-2.1.72.0/fs/Config.in Thu Dec 11 22:35:17 1997+++ linux-2.1.72.new/fs/Config.in Fri Dec 12 16:58:27 1997@@ -53,6 +53,12 @@ tristate 'NCP filesystem support (to mount NetWare volumes)' CONFIG_NCP_FS fi tristate 'OS/2 HPFS filesystem support (read only)' CONFIG_HPFS_FS++tristate 'NTFS filesystem support (read only)' CONFIG_NTFS_FS+if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then+ bool ' NTFS read-write support (experimental)' CONFIG_NTFS_RW+fi+ tristate 'System V and Coherent filesystem support' CONFIG_SYSV_FS tristate 'Amiga FFS filesystem support' CONFIG_AFFS_FS tristate 'ROM filesystem support' CONFIG_ROMFS_FSdiff -ur linux-2.1.72.0/fs/Makefile linux-2.1.72.new/fs/Makefile--- linux-2.1.72.0/fs/Makefile Thu Dec 11 22:34:33 1997+++ linux-2.1.72.new/fs/Makefile Fri Dec 12 16:58:27 1997@@ -16,7 +16,7 @@ inode.o dcache.o attr.o bad_inode.o $(BINFMTS) MOD_LIST_NAME := FS_MODULES-ALL_SUB_DIRS = coda minix ext2 fat msdos vfat proc isofs nfs umsdos \+ALL_SUB_DIRS = coda minix ext2 fat msdos vfat proc isofs nfs umsdos ntfs \ hpfs sysv smbfs ncpfs ufs affs romfs autofs lockd nfsd nls ifeq ($(CONFIG_QUOTA),y)@@ -167,6 +167,14 @@ else ifeq ($(CONFIG_HPFS_FS),m) MOD_SUB_DIRS += hpfs+ endif+endif++ifeq ($(CONFIG_NTFS_FS),y)+SUB_DIRS += ntfs+else+ ifeq ($(CONFIG_NTFS_FS),m)+ MOD_SUB_DIRS += ntfs endif endif diff -ur linux-2.1.72.0/fs/filesystems.c linux-2.1.72.new/fs/filesystems.c--- linux-2.1.72.0/fs/filesystems.c Thu Dec 11 22:31:47 1997+++ linux-2.1.72.new/fs/filesystems.c Fri Dec 12 16:59:18 1997@@ -24,6 +24,7 @@ #include <linux/ufs_fs.h> #include <linux/romfs_fs.h> #include <linux/auto_fs.h>+#include <linux/ntfs_fs.h> #include <linux/major.h> #include <linux/smp.h> #include <linux/smp_lock.h>@@ -103,6 +104,10 @@ #ifdef CONFIG_HPFS_FS init_hpfs_fs();+#endif++#ifdef CONFIG_NTFS_FS+ init_ntfs_fs(); #endif #ifdef CONFIG_AFFS_FSdiff -ur linux-2.1.72.0/fs/nls/Config.in linux-2.1.72.new/fs/nls/Config.in--- linux-2.1.72.0/fs/nls/Config.in Thu Dec 11 22:31:16 1997+++ linux-2.1.72.new/fs/nls/Config.in Fri Dec 12 17:09:35 1997@@ -6,7 +6,8 @@ comment 'Native Language Support' # msdos and Joliet want NLS-if [ "$CONFIG_JOLIET" = "y" -o "$CONFIG_FAT_FS" != "n" ]; then+if [ "$CONFIG_JOLIET" = "y" -o "$CONFIG_FAT_FS" != "n" \+ -o "$CONFIG_NTFS_FS" != "n" ]; then define_bool CONFIG_NLS y else define_bool CONFIG_NLS ndiff -ur linux-2.1.72.0/include/linux/fs.h linux-2.1.72.new/include/linux/fs.h--- linux-2.1.72.0/include/linux/fs.h Thu Dec 11 22:35:19 1997+++ linux-2.1.72.new/include/linux/fs.h Fri Dec 12 16:58:27 1997@@ -252,6 +252,7 @@ #include <linux/minix_fs_i.h> #include <linux/ext2_fs_i.h> #include <linux/hpfs_fs_i.h>+#include <linux/ntfs_fs_i.h> #include <linux/msdos_fs_i.h> #include <linux/umsdos_fs_i.h> #include <linux/iso_fs_i.h>@@ -351,6 +352,7 @@ struct minix_inode_info minix_i; struct ext2_inode_info ext2_i; struct hpfs_inode_info hpfs_i;+ struct ntfs_inode_info ntfs_i; struct msdos_inode_info msdos_i; struct umsdos_inode_info umsdos_i; struct iso_inode_info isofs_i;@@ -488,6 +490,7 @@ #include <linux/minix_fs_sb.h> #include <linux/ext2_fs_sb.h> #include <linux/hpfs_fs_sb.h>+#include <linux/ntfs_fs_sb.h> #include <linux/msdos_fs_sb.h> #include <linux/iso_fs_sb.h> #include <linux/nfs_fs_sb.h>@@ -522,6 +525,7 @@ struct minix_sb_info minix_sb; struct ext2_sb_info ext2_sb; struct hpfs_sb_info hpfs_sb;+ struct ntfs_sb_info ntfs_sb; struct msdos_sb_info msdos_sb; struct isofs_sb_info isofs_sb; struct nfs_sb_info nfs_sb;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -