linux/fs/exfat
Tetsuhiro Kohada 7018ec68f0 exfat: retain 'VolumeFlags' properly
MediaFailure and VolumeDirty should be retained if these are set before
mounting.

In '3.1.13.3 Media Failure Field' of exfat specification describe:

 If, upon mounting a volume, the value of this field is 1,
 implementations which scan the entire volume for media failures and
 record all failures as "bad" clusters in the FAT (or otherwise resolve
 media failures) may clear the value of  this field to 0.

Therefore, We should not clear MediaFailure without scanning volume.

In '8.1 Recommended Write Ordering' of exfat specification describe:

 Clear the value of the VolumeDirty field to 0, if its value prior to
 the first step was 0.

Therefore, We should not clear VolumeDirty after mounting.
Also rename ERR_MEDIUM to MEDIA_FAILURE.

Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
2020-08-12 08:31:13 +09:00
..
balloc.c exfat: remove EXFAT_SB_DIRTY flag 2020-08-12 08:31:10 +09:00
cache.c exfat: add exfat cache 2020-03-05 21:00:40 -05:00
dir.c exfat: add error check when updating dir-entries 2020-08-12 08:31:12 +09:00
exfat_fs.h exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00
exfat_raw.h exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00
fatent.c exfat: optimize exfat_zeroed_cluster() 2020-08-12 08:31:12 +09:00
file.c exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00
inode.c exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00
Kconfig exfat: Improve wording of EXFAT_DEFAULT_IOCHARSET config option 2020-06-09 16:48:39 +09:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: write multiple sectors at once 2020-08-12 08:31:11 +09:00
namei.c exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00
nls.c exfat: fix name_hash computation on big endian systems 2020-07-21 10:44:19 +09:00
super.c exfat: retain 'VolumeFlags' properly 2020-08-12 08:31:13 +09:00