[Toybox] [PATCH] Fix remounting /system on Android.

enh enh at google.com
Wed Feb 17 16:44:45 PST 2016


This adds the missing "relatime" option, fixes error handling logic (mount
returns 0/-1, not an errno value, and I at least get EACCES rather than
EROFS in the case where the underlying block device is read-only; we should
also probably only try again if the ioctl actually succeeded), and adds the
missing newline in case where we go around and try again read-only.

The test case was "mount -o rw,remount /system" on Android.
---
 toys/lsb/mount.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-remounting-system-on-Android.patch
Type: text/x-patch
Size: 2434 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160217/833e3d49/attachment-0004.bin>


More information about the Toybox mailing list