Kernel Tree For Xiaomi 11 Lite NE 5G
Go to file
Yuezhang Mo 327699f41c exfat: fix setting uninitialized time to ctime/atime
An uninitialized time is set to ctime/atime in __exfat_write_inode().
It causes xfstests generic/003 and generic/192 to fail.

And since there will be a time gap between setting ctime/atime to
the inode and writing back the inode, so ctime/atime should not be
set again when writing back the inode.

Fixes: 4c72a36edd54 ("exfat: convert to new timestamp accessors")

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2023-11-03 14:23:36 +09:00
.github/workflows exfat: github action: remove liunx-4.1 source to get more disk space 2023-09-11 16:59:54 +09:00
balloc.c exfat: add necessary header for vmalloc 2023-07-16 23:58:02 +09:00
cache.c exfat: fix use of uninitialized spinlock on error path 2020-10-12 22:56:52 +09:00
dir.c exfat: use fat ioctls definitions from include/uapi/linux/msdos_fs.h 2023-10-30 21:08:39 +09:00
exfat_fs.h exfat: convert to new timestamp accessors 2023-11-03 14:16:31 +09:00
exfat_raw.h exfat: use fat ioctls definitions from include/uapi/linux/msdos_fs.h 2023-10-30 21:08:39 +09:00
fatent.c exfat: fix the newly allocated clusters are not freed in error handling 2023-07-11 22:20:45 +09:00
file.c exfat: convert to new timestamp accessors 2023-11-03 14:16:31 +09:00
inode.c exfat: fix setting uninitialized time to ctime/atime 2023-11-03 14:23:36 +09:00
Kconfig exfat: fs: add CONFIG_BUFFER_HEAD 2023-11-02 22:52:36 +09:00
Makefile exfat: fix typo in Makefile 2021-10-14 22:24:23 -07:00
misc.c exfat: convert to new timestamp accessors 2023-11-03 14:16:31 +09:00
namei.c exfat: convert to new timestamp accessors 2023-11-03 14:16:31 +09:00
nls.c exfat: Drop superfluous new line for error messages 2022-07-29 17:26:12 +09:00
README.md exfat: fix typo 2020-02-10 21:35:58 +09:00
super.c exfat: convert to new timestamp accessors 2023-11-03 14:16:31 +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