1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

Revert "Kernel & Userland: Allow to mount image files formatted with Ext2FS"

This reverts commit a60ea79a41.

Reverting these changes since they broke things.
Fixes #1608.
This commit is contained in:
Andreas Kling 2020-04-03 21:20:46 +02:00
parent 28be90120b
commit 9ae3cced76
8 changed files with 51 additions and 101 deletions

View file

@ -582,15 +582,14 @@ int reboot()
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int mount(int source_fd, const char* target, const char* fs_type, int flags)
int mount(const char* source, const char* target, const char* fs_type, int flags)
{
if (!target || !fs_type) {
if (!source || !target || !fs_type) {
errno = EFAULT;
return -1;
}
Syscall::SC_mount_params params {
source_fd,
{ source, strlen(source) },
{ target, strlen(target) },
{ fs_type, strlen(fs_type) },
flags