summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-01-28 23:54:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-29 08:45:56 +0100
commitdbbc378fb2be2fb0f5fe8f767d25b6caf65df3c3 (patch)
treefbfc5b93bbcc4523aaa9a5c3917f5d73518a7ab4 /Base/usr
parentb7b09470ca7f08f42b0f3a6701192adbdf198870 (diff)
downloadserenity-dbbc378fb2be2fb0f5fe8f767d25b6caf65df3c3.zip
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.
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man2/mount.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/usr/share/man/man2/mount.md b/Base/usr/share/man/man2/mount.md
index 3ece948f60..26b4c26710 100644
--- a/Base/usr/share/man/man2/mount.md
+++ b/Base/usr/share/man/man2/mount.md
@@ -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.