linux-stable/fs/exfat
Yuezhang Mo 807ee55042 exfat: support handle zero-size directory
[ Upstream commit dab48b8f2f ]

After repairing a corrupted file system with exfatprogs' fsck.exfat,
zero-size directories may result. It is also possible to create
zero-size directories in other exFAT implementation, such as Paragon
ufsd dirver.

As described in the specification, the lower directory size limits
is 0 bytes.

Without this commit, sub-directories and files cannot be created
under a zero-size directory, and it cannot be removed.

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>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:14:49 +00:00
..
Kconfig fs: build the legacy direct I/O code conditionally 2023-01-26 10:30:56 -07:00
Makefile
balloc.c exfat: use kvmalloc_array/kvfree instead of kmalloc_array/kfree 2023-07-11 21:33:20 +09:00
cache.c
dir.c vfs: get rid of old '->iterate' directory operation 2023-08-06 15:08:35 +02:00
exfat_fs.h Description for this pull request: 2023-03-01 08:42:27 -08:00
exfat_raw.h exfat: handle unreconized benign secondary entries 2023-02-27 21:14:46 +09:00
fatent.c exfat: fix the newly allocated clusters are not freed in error handling 2023-02-28 20:01:40 +09:00
file.c splice: Use filemap_splice_read() instead of generic_file_splice_read() 2023-05-24 08:42:17 -06:00
inode.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-02-27 21:14:45 +09:00
misc.c
namei.c exfat: support handle zero-size directory 2023-11-28 17:14:49 +00:00
nls.c
super.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-02-27 21:14:45 +09:00