diff options
author | Georgi Valkov <gvalkov@gmail.com> | 2025-06-15 15:34:57 +0300 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-06-17 22:20:31 +0200 |
commit | 3793b1748ad151c8043dee1db198fffa3dbb5a67 (patch) | |
tree | 81e6feed31e07875cb72a4d570d52bd28db0cc68 /example | |
parent | f4c5d20772145c02f8e78176ae9d6cb6f60c6cfa (diff) | |
download | libfuse-3793b1748ad151c8043dee1db198fffa3dbb5a67.tar.gz |
mount_util.c: check if utab exists before update
Do not attempt to update /run/mount/utab if it doesn't exist.
Note: if this path ever changes, utab updates will break.
Fixes the following error when mounting iPhone using ifuse:
ifuse /mnt --container com.httpstorm.httpstorm
mount: mounting ifuse on /mnt failed: Invalid argument
On OpenWRT by default mount-utils is not installed and utab
does not exist. /bin/mount is a symlink to /bin/busybox and
does not support updating of utab. If mount-utils is installed:
/run/mount/ exists, but does not contain utab.
The mount-utils instance is under /usr/bin/mount, so a hard-coded
call to /bin/mount will still fail. Using /usr/bin/mount succeeds
but does not create utab.
[1] https://github.com/libfuse/libfuse/pull/1247
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions