diff options
author | Max Reitz <mreitz@redhat.com> | 2017-04-11 17:52:26 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-04-27 15:39:49 +0200 |
commit | 362b3786ebd1f97737783b53de056265efa9e870 (patch) | |
tree | 6f0e4dfc00fd448c7a29a8826c80aec2accbbd83 /block.c | |
parent | 0d5e0bb2f78d04955a34ad6784cc7d457716df83 (diff) | |
download | qemu-362b3786ebd1f97737783b53de056265efa9e870.zip qemu-362b3786ebd1f97737783b53de056265efa9e870.tar.gz qemu-362b3786ebd1f97737783b53de056265efa9e870.tar.bz2 |
Revert "block/io: Comment out permission assertions"
This reverts commit e3e0003a8f6570aba1421ef99a0b383a43371a74.
This commit was necessary for the 2.9 release because we were unable to
fix the underlying issue(s) in time. However, we will be for 2.10.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -3313,11 +3313,7 @@ int bdrv_truncate(BdrvChild *child, int64_t offset) BlockDriver *drv = bs->drv; int ret; - /* FIXME: Some format block drivers use this function instead of implicitly - * growing their file by writing beyond its end. - * See bdrv_aligned_pwritev() for an explanation why we currently - * cannot assert this permission in that case. */ - // assert(child->perm & BLK_PERM_RESIZE); + assert(child->perm & BLK_PERM_RESIZE); if (!drv) return -ENOMEDIUM; |