sync blockdev code