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:
Christopher Haster
2023-07-25 02:14:50 -05:00
parent a27c7d9ddd
commit 51c4dadbe3
2 changed files with 787 additions and 237 deletions
+769 -232
View File
File diff suppressed because it is too large Load Diff