Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a66be1a authored by Tom Cherry's avatar Tom Cherry
Browse files

fs_mgr fix flags/fs_mgr_flags mismatch

Mount flags prefixed with MS_ are intended for the 'flags' entry of
fstab_rec, not fs_mgr_flags.

Coincidentally, this probably has always worked since this maps to the
'wait' flag, which is almost always set for system in the first place.

Test: build
Change-Id: Id4862bc087aa98e1f0e17145dc3ed74b5d867596
parent 7f5a2d3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1002,7 +1002,7 @@ int fs_mgr_mount_all(fstab* fstab, int mount_mode) {
        /* Skip mounting the root partition, as it will already have been mounted */
        if (!strcmp(fstab->recs[i].mount_point, "/") ||
            !strcmp(fstab->recs[i].mount_point, "/system")) {
            if ((fstab->recs[i].fs_mgr_flags & MS_RDONLY) != 0) {
            if ((fstab->recs[i].flags & MS_RDONLY) != 0) {
                fs_mgr_set_blk_ro(fstab->recs[i].blk_device);
            }
            continue;