]> Git Repo - qemu.git/commit
block: Add BDRV_BLOCK_EOF to bdrv_get_block_status()
authorEric Blake <[email protected]>
Fri, 5 May 2017 02:14:59 +0000 (21:14 -0500)
committerFam Zheng <[email protected]>
Fri, 30 Jun 2017 13:48:06 +0000 (21:48 +0800)
commitfb0d8654ffc3ea1494067327fc4c4da5d0872724
treeaf7bb87f837463be3a8440529f1fcd492c648d52
parent36f87b4513373b3cd79c87c9197d17face95d4ac
block: Add BDRV_BLOCK_EOF to bdrv_get_block_status()

Just as the block layer already sets BDRV_BLOCK_ALLOCATED as a
shortcut for subsequent operations, there are also some optimizations
that are made easier if we can quickly tell that *pnum will advance
us to the end of a file, via a new BDRV_BLOCK_EOF which gets set
by the block layer.

This just plumbs up the new bit; subsequent patches will make use
of it.

Signed-off-by: Eric Blake <[email protected]>
Message-Id: <20170505021500[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
block/io.c
include/block/block.h
This page took 0.023329 seconds and 4 git commands to generate.