Skip to content

Commit db261e8

Browse files
authored
[WasmFS] Remove use of new file system to refer to wasmfs. NFC (#23776)
1 parent 11725fa commit db261e8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

system/include/emscripten/wasmfs.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ backend_t wasmfs_get_backend_by_path(const char* path __attribute__((nonnull)));
2222
// Obtains the backend_t of a specified fd.
2323
backend_t wasmfs_get_backend_by_fd(int fd);
2424

25-
// Creates and opens a new file in the new file system under a specific backend.
25+
// Creates and opens a new file using a specific backend.
2626
// Returns the file descriptor for the new file like `open`. Returns a negative
2727
// value on error. TODO: It might be worth returning a more specialized type
2828
// like __wasi_fd_t here.
2929
// TODO: Remove this function so that only directories can be mounted.
3030
int wasmfs_create_file(const char* pathname __attribute__((nonnull)), mode_t mode, backend_t backend);
3131

32-
// Creates a new directory in the new file system under a specific backend.
32+
// Creates a new directory using a specific backend.
3333
// Returns 0 on success like `mkdir`, or a negative value on error.
3434
// TODO: Add an alias with wasmfs_mount.
3535
int wasmfs_create_directory(const char* path __attribute__((nonnull)), mode_t mode, backend_t backend);
@@ -40,7 +40,7 @@ int wasmfs_unmount(const char* path __attribute__((nonnull)));
4040

4141
// Backend creation
4242

43-
// Creates a JSFile Backend in the new file system.
43+
// Creates a new JSFile Backend
4444
backend_t wasmfs_create_js_file_backend(void);
4545

4646
// A function that receives a void* and returns a backend.
@@ -91,7 +91,7 @@ backend_t wasmfs_create_node_backend(const char* root __attribute__((nonnull)));
9191
// thread.
9292
backend_t wasmfs_create_opfs_backend(void);
9393

94-
// Creates a generic JSIMPL backend in the new file system.
94+
// Creates a generic JSIMPL backend
9595
backend_t wasmfs_create_jsimpl_backend(void);
9696

9797
backend_t wasmfs_create_icase_backend(backend_t backend);

system/lib/wasmfs/backend.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#include "file.h"
1111

1212
namespace wasmfs {
13-
// A backend (or modular backend) provides a base for the new file system to
14-
// extend its storage capabilities. Files and directories will be represented
15-
// in the file system structure, but their underlying backing could exist in
16-
// persistent storage, another thread, etc.
13+
// A backend (or modular backend) provides a base to extend WasmFS with new
14+
// storage capabilities. Files and directories will be represented in the file
15+
// system structure, but their underlying backing could exist in persistent
16+
// storage, another thread, etc.
1717
class Backend {
1818

1919
public:

0 commit comments

Comments
 (0)