intelli_plug: cherry-picked from mako
add Dynamic Fsync