This problem has already been reported and fixed(?) in pfsense's bug tracking
system by adding the sysctl vfs.forcesync.
The author of the fix is Ermal Luçi ( http://redmine.pfsense.org/users/6 ).
I tried this under FreeBSD 9.1 and it seems to work.
mount -ow / ; time mount -orf /
: 65s without patch
With patch time is <1s.
As I am no vfs expert I do not know what potential negative consequences
this change may have.
The original patch uses CTLFLAG_RD for forcesync. I do not see why
this should not be CTLFLAG_RW.
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped