fs Add mount subcommand

This commit is contained in:
2025-10-14 00:40:17 +02:00
parent 25cb309105
commit c895c5db3e
7 changed files with 76 additions and 4 deletions

View File

@ -27,6 +27,10 @@ void fs_mkf(void) {
}
IOH ioh = ioctl(IOCTL_NOHANDLE, IOCTL_OPENF, (uint64_t)path, IOCTL_F_MAKE | IOCTL_F_WRITE, 0);
if (ioh < 0) {
uprintf("fs mkf: could not create %s\n", path);
return;
}
if (FS_MKF_CONFIG.write != NULL) {
if (ioctl(ioh, IOCTL_WRITE, (uint64_t)FS_MKF_CONFIG.write, string_len(FS_MKF_CONFIG.write), 0) < 0) {
uprintf("fs mkf: could not write to %s\n", path);