mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Kernel & Userland: Allow to mount image files formatted with Ext2FS
This commit is contained in:
parent
6b59311d4b
commit
a60ea79a41
8 changed files with 101 additions and 51 deletions
|
@ -582,14 +582,15 @@ int reboot()
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int mount(const char* source, const char* target, const char* fs_type, int flags)
|
||||
int mount(int source_fd, const char* target, const char* fs_type, int flags)
|
||||
{
|
||||
if (!source || !target || !fs_type) {
|
||||
if (!target || !fs_type) {
|
||||
errno = EFAULT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Syscall::SC_mount_params params {
|
||||
{ source, strlen(source) },
|
||||
source_fd,
|
||||
{ target, strlen(target) },
|
||||
{ fs_type, strlen(fs_type) },
|
||||
flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue