Added lfsr_stat and integrated into dir tests

lfsr_stat is really a directory operation underneath, so it's good to
add to our testing while we are building up the dir tests.

It's interesting to note lfsr_stat and lfsr_dir_read are less
deduplicatable than their previous versions, since lfsr_stat can get
most of it's info from lfsr_mtree_pathlookup. Though there will probably
need to be some code sharing when we get to files with sizes.
This commit is contained in:
Christopher Haster
2023-07-07 13:53:39 -05:00
parent f472327f74
commit 039bdf91b4
3 changed files with 322 additions and 29 deletions
+1
View File
@@ -548,6 +548,7 @@ int lfs_rename(lfs_t *lfs, const char *oldpath, const char *newpath);
// Fills out the info structure, based on the specified file or directory.
// Returns a negative error code on failure.
int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
int lfsr_stat(lfs_t *lfs, const char *path, struct lfs_info *info);
// Get a custom attribute
//