e2fsprogs: disarm the mount-point check

Discovered while creating an ext2 file system on an sd_card (no
partitions, imx6), which failed with an error message that stated the
device is in use. Genode's libc/posix layer has no notion of mount
points.

Fixes #3271
This commit is contained in:
Pirmin Duss 2019-04-02 11:19:38 +02:00 committed by Christian Helmuth
parent 642c2ab4bc
commit 8b4e2a21e4
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
a65db85fad26a118b92cccf5ca742c1197809be3
456c6445bab2a174dd845f7aa2beb767250722db

View File

@ -1,9 +1,10 @@
+++ src/noux-pkg/e2fsprogs/lib/ext2fs/ismounted.c
@@ -352,6 +352,9 @@
@@ -352,6 +352,10 @@
{
errcode_t retval = 0;
+ /* disarm the mount-point check as Genode has no notion of mount points */
+ *mount_flags = 0;
+ return 0;
+
if (is_swap_device(device)) {