Added more dir test around really niche corner cases, fixed related bugs
- Prevented removing and renaming of the root directory. This is done by repurposing the INVAL error in lfsr_mtree_lookup to indicate the found entry is the root. The root entry has special behavior in almost every function, owing to the fact it doesn't really have an mid/rid. So I think this is a reasonable approach. - Added support for lfsr_stat of the root directory. - Fixed off-by-two in lfsr_dir_seek thanks to the "." and ".." entries. Humorously there is a comment noting this but the code didn't actually match the comment.
This commit is contained in:
+769
-232
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user