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

Kernel: Return -ENOTBLK for non-block device Ext2FS mount source

When mounting an Ext2FS, a block device source is required. All other
filesystem types are unaffected, as most of them ignore the source file
descriptor anyway.

Fixes #5153.
This commit is contained in:
Linus Groh 2021-01-28 23:54:29 +01:00 committed by Andreas Kling
parent b7b09470ca
commit dbbc378fb2
2 changed files with 4 additions and 0 deletions

View file

@ -90,6 +90,8 @@ launch the initial userspace process.
file-backed filesystem (and not a pseudo filesystem), or `MS_BIND` is
specified in flags.
* `ENOTDIR`: If `target` is not a directory.
* `ENOTBLK`: If the `source_fd` is not a block device, but one is required (i.e.
when `fs_type` is `Ext2FS`)
All of the usual path resolution errors may also occur.