No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christophe Vu-Brugier 491d530681 exfat: fix i_blocks for files truncated over 4 GiB
In exfat_truncate(), the computation of inode->i_blocks is wrong if
the file is larger than 4 GiB because a 32-bit variable is used as a
mask. This is fixed by casting the variable to loff_t which is 64-bit.

Also fix the same computation in exfat_read_root().

This commit is similar to Sungjong Seo's fix in exfat_fill_inode()
last month:

  commit 0c336d6e33f4 ("exfat: fix incorrect loading of i_blocks for
                        large files")

Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2021-11-19 06:43:03 +09:00
.travis.yml
.travis_cmd_wrapper.pl
.travis_get_mainline_kernel
balloc.c exfat: fix build on x86 with 4.19 kernel 2021-06-16 00:03:40 +08:00
cache.c
dir.c exfat: make exfat_find_location() static 2021-11-03 11:09:18 +09:00
exfat_fs.h exfat: make exfat_find_location() static 2021-11-03 11:09:18 +09:00
exfat_raw.h
fatent.c exfat: simplify is_valid_cluster() 2021-11-03 11:09:14 +09:00
file.c exfat: fix i_blocks for files truncated over 4 GiB 2021-11-19 06:43:03 +09:00
inode.c exfat: reuse exfat_inode_info variable instead of calling EXFAT_I() 2021-11-03 11:09:20 +09:00
Kconfig
Makefile
misc.c
namei.c exfat: reuse exfat_inode_info variable instead of calling EXFAT_I() 2021-11-03 11:09:20 +09:00
nls.c
README.md
super.c exfat: fix i_blocks for files truncated over 4 GiB 2021-11-19 06:43:03 +09:00

exFAT filesystem

This is the exfat filesystem for support from the linux 4.1 kernel to the latest kernel.

Installing as a stand-alone module

Install prerequisite package for Fedora, RHEL:

	yum install kernel-devel-$(uname -r)

Build step:

	make
	sudo make install

To load the driver manually, run this as root:

	modprobe exfat

Installing as a part of the kernel

  1. Let's take [linux] as the path to your kernel source dir.
	cd [linux]
	cp -ar exfat [linux]/fs/
  1. edit [linux]/fs/Kconfig
	source "fs/fat/Kconfig"
	+source "fs/exfat/Kconfig"
	source "fs/ntfs/Kconfig"
  1. edit [linux]/fs/Makefile
	obj-$(CONFIG_FAT_FS)          += fat/
	+obj-$(CONFIG_EXFAT_FS)       += exfat/
	obj-$(CONFIG_BFS_FS)          += bfs/
  1. make menuconfig and set exfat
	File systems  --->
		DOS/FAT/NT Filesystems  --->
			<M> exFAT filesystem support
			(utf8) Default iocharset for exFAT

build your kernel