exfat: support create zero-size directory
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Thu, 20 Jul 2023 06:40:08 +0000 (14:40 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 31 Oct 2023 01:01:45 +0000 (10:01 +0900)
commitee785c15b5906a69d4007b4754e8ae40fb41e0b4
treed5960f2815f9fa05ae3310aadad0670aebee52a4
parentdab48b8f2fe7264d51ec9eed0adea0fe3c78830a
exfat: support create zero-size directory

This commit adds mount option 'zero_size_dir'. If this option
enabled, don't allocate a cluster to directory when creating
it, and set the directory size to 0.

On Windows, a cluster is allocated for a directory when it is
created, so the mount option is disabled by default.

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>
fs/exfat/dir.c
fs/exfat/exfat_fs.h
fs/exfat/namei.c
fs/exfat/super.c