Posting this separately so it's easier to find...Description:https://redmine.pfsense.org/issues/2401
Mounting read-only after mounting read-write can be very slow on NanoBSD/sbin/mount -u -r -f -o sync,noatime /
takes ages to finish, thus any changes in the web interfaces take a lot of time when one clicks 'save'.
Remounting /cf doesn't seem to cause any problems.
I have tried killing almost all processes, yet there was no change in behavior. Even when I remounted / RW and RO back to back with no delay, it stalled at the remount RO.Workaround (not a fix!):
in /etc/inc/config.lib.inc line 361
mwexec("/sbin/mount -u -r -f -o sync,noatime /");
mwexec("/sbin/mount -u -w -f -o async,noatime / && /sbin/mount -u -r -f -o async,noatime / && /sbin/mount -u -r -f -o sync,noatime /");Possible problems
Note the async
This may lead to loss of data, actually, but hasn't caused any problems for me so far.
Time for remount RO has dropped on my Alix Board from ~ 70 seconds to ~7 seconds.