mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Revert "block/io: Comment out permission assertions"
This reverts commit e3e0003a8f
.
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>
This commit is contained in:
parent
0d5e0bb2f7
commit
362b3786eb
2 changed files with 3 additions and 15 deletions
6
block.c
6
block.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue