fat: add support for directories without . and .. entries
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 5 repliesIn review
Changes in v2 from the cover letter
- Also ignore the absence of . directory and always have at least two links.
- Add a second commit to always emit . and .. at readdir.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fat: ignore . and .. subdirs and always add links to dirsfs/ fs/ | +4 | 0 replies | |
| 2/2 | fat: always use dir_emit_dots and ignore . and .. entriesfs/ | +9 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] fat: add support for directories without . and .. entries
Some FAT filesystems do not have . and .. entries in some directories. Currently, such filesystems are not mounted because such directories will have no links. They are also corrupted as inodes are evicted and that leads to such directories clusters being marked as freed. Later mounts will then error out when finding such clusters.
These two commits allow those filesystems to be mounted and . and .. to still appear when listing such directories.
v2:
- Also ignore the absence of . directory and always have at least two links.
- Add a second commit to always emit . and .. at readdir.
Thadeu Lima de Souza Cascardo (2):
fat: ignore . and .. subdirs and always add links to dirs
fat: always use dir_emit_dots and ignore . and .. entries
fs/fat/dir.c | 28 ++++++++++++---------------- fs/fat/inode.c | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1