@@ -474,7 +474,8 @@ static __wasi_fd_t doOpen(path::ParsedParent parsed,
474
474
// report a generic error.
475
475
return -EIO;
476
476
}
477
- [[maybe_unused]] bool mounted = lockedParent.mountChild (std::string (childName), created);
477
+ [[maybe_unused]] bool mounted =
478
+ lockedParent.mountChild (std::string (childName), created);
478
479
assert (mounted);
479
480
}
480
481
// TODO: Check that the insert actually succeeds.
@@ -588,8 +589,9 @@ int __syscall_mknodat(int dirfd, const char* path, mode_t mode, dev_t dev) {
588
589
OpenReturnMode::Nothing);
589
590
}
590
591
591
- static int
592
- doMkdir (path::ParsedParent parsed, mode_t mode, backend_t backend = NullBackend) {
592
+ static int doMkdir (path::ParsedParent parsed,
593
+ mode_t mode,
594
+ backend_t backend = NullBackend) {
593
595
if (auto err = parsed.getError ()) {
594
596
return err;
595
597
}
@@ -646,7 +648,7 @@ doMkdir(path::ParsedParent parsed, mode_t mode, backend_t backend = NullBackend)
646
648
647
649
// This function is exposed to users and allows users to specify a particular
648
650
// backend that a directory should be created within.
649
- int wasmfs_create_directory (char * path, mode_t mode, backend_t backend) {
651
+ int wasmfs_create_directory (char * path, mode_t mode, backend_t backend) {
650
652
static_assert (std::is_same_v<decltype (doMkdir (0 , 0 , 0 )), int >,
651
653
" unexpected conversion from result of doMkdir to int" );
652
654
return doMkdir (path::parseParent (path), mode, backend);
@@ -1496,7 +1498,8 @@ int __syscall_fcntl64(int fd, int cmd, ...) {
1496
1498
}
1497
1499
}
1498
1500
1499
- static int doStatFS (std::shared_ptr<File>& file, size_t size, struct statfs * buf) {
1501
+ static int
1502
+ doStatFS (std::shared_ptr<File>& file, size_t size, struct statfs * buf) {
1500
1503
if (size != sizeof (struct statfs )) {
1501
1504
// We only know how to write to a standard statfs, not even a truncated one.
1502
1505
return -EINVAL;
0 commit comments