mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
docs
This commit is contained in:
1 parent
9973c5f2b7
commit
f72b27d1c1
1 file changed
+7
-10
+7
-10
@@ -3496,8 +3496,8 @@ mg_hexdump(c->recv.buf, c->recv.len); // Hex dump incoming data
|
|||||||
Mongoose allows to override file i/o operations in order to support different
|
Mongoose allows to override file i/o operations in order to support different
|
||||||
storages, like programmable flash, no-filesystem devices etc.
|
storages, like programmable flash, no-filesystem devices etc.
|
||||||
In order to accomplish this, Mongoose provides a `struct mg_fs` API to
|
In order to accomplish this, Mongoose provides a `struct mg_fs` API to
|
||||||
specify a custom filesystem. In addition to this, Mongoose provides two
|
specify a custom filesystem. In addition to this, Mongoose provides several
|
||||||
built-in APIs - a standard POSIX API, and a "packed FS" API. A packed FS
|
built-in APIs - a standard POSIX, FatFS, and a "packed FS" API. A packed FS
|
||||||
allows to embed a filesystem into the application or firmware binary,
|
allows to embed a filesystem into the application or firmware binary,
|
||||||
described below.
|
described below.
|
||||||
|
|
||||||
@@ -3531,14 +3531,11 @@ mg_http_serve_dir(c, hm, &opts);
|
|||||||
|
|
||||||
### Packed filesystem
|
### Packed filesystem
|
||||||
|
|
||||||
Mongoose
|
A packed filesystem allow to "pack" filesystem into a C file which then can
|
||||||
has a filesystem abstraction layer. By default, a POSIX filesystem,
|
be compiled into the binary, forming a read-only file system.
|
||||||
a FatFS filesystem, and a "packed" filesystem are implemented.
|
This makes it possible to serve files on devices with no
|
||||||
|
filesystem. Even on devices with a filesystem, packing some files like Web UI
|
||||||
A packed filesystem allow to "pack" filesystem into single file, for example,
|
can be beneficial to be resilient to filesystem errors.
|
||||||
into executable or flashable image - and files will be hardcoded into the
|
|
||||||
binary, making it possible to e.g. serve files on devices with no
|
|
||||||
filesystem, or be resilient to filesystem issues:
|
|
||||||
|
|
||||||
<img src="images/packed.svg" alt="packed filesystem" />
|
<img src="images/packed.svg" alt="packed filesystem" />
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user