filesystem.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. =================
  2. NuttX File System
  3. =================
  4. **Overview**. NuttX includes an optional, scalable file system.
  5. This file-system may be omitted altogether; NuttX does not depend
  6. on the presence of any file system.
  7. **Pseudo Root File System**. A simple *in-memory*, *pseudo* file
  8. system can be enabled by default. This is an *in-memory* file
  9. system because it does not require any storage medium or block
  10. driver support. Rather, file system contents are generated
  11. on-the-fly as referenced via standard file system operations
  12. (open, close, read, write, etc.). In this sense, the file system
  13. is *pseudo* file system (in the same sense that the Linux
  14. ``/proc`` file system is also referred to as a pseudo file
  15. system).
  16. Any user supplied data or logic can be accessed via the
  17. pseudo-file system. Built in support is provided for character and
  18. block `drivers <#DeviceDrivers>`__ in the ``/dev`` pseudo file
  19. system directory.
  20. **Mounted File Systems** The simple in-memory file system can be
  21. extended my mounting block devices that provide access to true
  22. file systems backed up via some mass storage device. NuttX
  23. supports the standard ``mount()`` command that allows a block
  24. driver to be bound to a mountpoint within the pseudo file system
  25. and to a file system. At present, NuttX supports the standard VFAT
  26. and ROMFS file systems, a special, wear-leveling NuttX FLASH File
  27. System (NXFFS), as well as a Network File System client (NFS
  28. version 3, UDP).
  29. **Comparison to Linux** From a programming perspective, the NuttX
  30. file system appears very similar to a Linux file system. However,
  31. there is a fundamental difference: The NuttX root file system is a
  32. pseudo file system and true file systems may be mounted in the
  33. pseudo file system. In the typical Linux installation by
  34. comparison, the Linux root file system is a true file system and
  35. pseudo file systems may be mounted in the true, root file system.
  36. The approach selected by NuttX is intended to support greater
  37. scalability from the very tiny platform to the moderate platform.