snapshot-access.c (d5ab9490cdf3ebcd97793982d4664f951816f6db) | snapshot-access.c (9a5a1c621ed72161abcf461d46c7b7b7f97938bf) |
---|---|
1/* 2 * snapshot_access block driver 3 * 4 * Copyright (c) 2022 Virtuozzo International GmbH. 5 * 6 * Author: 7 * Sementsov-Ogievskiy Vladimir <vsementsov@virtuozzo.com> 8 * --- 35 unchanged lines hidden (view full) --- 44 bool want_zero, int64_t offset, 45 int64_t bytes, int64_t *pnum, 46 int64_t *map, BlockDriverState **file) 47{ 48 return bdrv_co_snapshot_block_status(bs->file->bs, want_zero, offset, 49 bytes, pnum, map, file); 50} 51 | 1/* 2 * snapshot_access block driver 3 * 4 * Copyright (c) 2022 Virtuozzo International GmbH. 5 * 6 * Author: 7 * Sementsov-Ogievskiy Vladimir <vsementsov@virtuozzo.com> 8 * --- 35 unchanged lines hidden (view full) --- 44 bool want_zero, int64_t offset, 45 int64_t bytes, int64_t *pnum, 46 int64_t *map, BlockDriverState **file) 47{ 48 return bdrv_co_snapshot_block_status(bs->file->bs, want_zero, offset, 49 bytes, pnum, map, file); 50} 51 |
52static int coroutine_fn snapshot_access_co_pdiscard(BlockDriverState *bs, 53 int64_t offset, int64_t bytes) | 52static int coroutine_fn GRAPH_RDLOCK 53snapshot_access_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) |
54{ 55 return bdrv_co_pdiscard_snapshot(bs->file->bs, offset, bytes); 56} 57 58static int coroutine_fn 59snapshot_access_co_pwrite_zeroes(BlockDriverState *bs, 60 int64_t offset, int64_t bytes, 61 BdrvRequestFlags flags) --- 71 unchanged lines hidden --- | 54{ 55 return bdrv_co_pdiscard_snapshot(bs->file->bs, offset, bytes); 56} 57 58static int coroutine_fn 59snapshot_access_co_pwrite_zeroes(BlockDriverState *bs, 60 int64_t offset, int64_t bytes, 61 BdrvRequestFlags flags) --- 71 unchanged lines hidden --- |