exfat: handle unreconized benign secondary entries
authorNamjae Jeon <linkinjeon@kernel.org>
Sat, 14 Jan 2023 04:09:48 +0000 (13:09 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 27 Feb 2023 12:14:46 +0000 (21:14 +0900)
commit8258ef28001ad30c074e823124e10b9c75a965ff
tree59d85150db72668631263e939d93c42810fa0429
parent39c1ce8eafc0ff64fb9e28536ccc7df6a8e2999d
exfat: handle unreconized benign secondary entries

Sony PXW-Z280 camera add vendor allocation entries to directory of
pictures. Currently, linux exfat does not support it and the file is
not visible. This patch handle vendor extension and allocation entries
as unreconized benign secondary entries. As described in the specification,
it is recognized but ignored, and when deleting directory entry set,
the associated clusters allocation are removed as well as benign secondary
directory entries.

Reported-by: Barócsi Dénes <admin@tveger.hu>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/dir.c
fs/exfat/exfat_fs.h
fs/exfat/exfat_raw.h