Commit dab48b8
exfat: support handle zero-size directory
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>1 parent 0ab8ba7 commit dab48b8
1 file changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | 354 | | |
359 | 355 | | |
360 | 356 | | |
361 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
| |||
368 | 374 | | |
369 | 375 | | |
370 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
371 | 382 | | |
372 | 383 | | |
373 | 384 | | |
| |||
646 | 657 | | |
647 | 658 | | |
648 | 659 | | |
649 | | - | |
| 660 | + | |
650 | 661 | | |
651 | 662 | | |
652 | 663 | | |
| |||
889 | 900 | | |
890 | 901 | | |
891 | 902 | | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
892 | 906 | | |
893 | 907 | | |
894 | 908 | | |
| |||
1256 | 1270 | | |
1257 | 1271 | | |
1258 | 1272 | | |
1259 | | - | |
| 1273 | + | |
| 1274 | + | |
1260 | 1275 | | |
1261 | 1276 | | |
1262 | 1277 | | |
| |||
0 commit comments