fs/spiffs: I have been test with apps/examples/fstest which provides a good exercise but of the FS internals but not of the user interface. I build an SPIFFS aware NSH configuration and found and fixed a number of glaring usability errors: (1) Missing logic to stat the SPIFFS root directory, (2) Confusion in use to two similarly named struct field... caused files to be unexpectedly deleted. (3) Fixed a sempahore deadlock condition. And (5) Fix /procfs/mount. It was unaware of the SPIFFS file system type.

This commit is contained in:
Gregory Nutt
2018-09-28 17:35:25 -06:00
parent e90723307e
commit 6a12213fbb
6 changed files with 230 additions and 197 deletions
+6
View File
@@ -108,6 +108,12 @@ FAR const char *fs_gettype(FAR struct statfs *statbuf)
break;
#endif
#ifdef CONFIG_FS_SPIFFS
case SPIFFS_SUPER_MAGIC:
fstype = "spiffs";
break;
#endif
#ifdef CONFIG_NFS
case NFS_SUPER_MAGIC:
fstype = "nfs";