mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
Kernel & Userland: Allow to mount image files formatted with Ext2FS
This commit is contained in:
parent
6b59311d4b
commit
a60ea79a41
Notes:
sideshowbarker
2024-07-19 07:59:54 +09:00
Author: https://github.com/supercomputer7
Commit: a60ea79a41
Pull-request: https://github.com/SerenityOS/serenity/pull/1513
Issue: https://github.com/SerenityOS/serenity/issues/1351
Reviewed-by: https://github.com/bugaevc
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