Change API for more efficient remount and unmount.