OSDN Git Service

Fix remounting /system on Android.
authorElliott Hughes <enh@google.com>
Thu, 18 Feb 2016 00:40:17 +0000 (16:40 -0800)
committerRob Landley <rob@landley.net>
Thu, 18 Feb 2016 01:01:19 +0000 (19:01 -0600)
commit289ca9b68c5bb10c3dda8aa71ae1bbe9dbc98ae7
tree7a0750de0dfdefd1ff053ab11179c384bcab70d1
parentb75c7dfa886e0cb9799e2c5673f7cb5cbf1a77ac
Fix remounting /system on Android.

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