logfs: Return -EINVAL if filesystem image doesn't match