snapshot-access.c (78f8b6d9c88740d7e6ec8300a936f17460e41008) snapshot-access.c (79a558664840adf502fe94907b0a680836e3e98e)
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 *

--- 59 unchanged lines hidden (view full) ---

68 int64_t offset, int64_t bytes,
69 QEMUIOVector *qiov, size_t qiov_offset,
70 BdrvRequestFlags flags)
71{
72 return -ENOTSUP;
73}
74
75
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 *

--- 59 unchanged lines hidden (view full) ---

68 int64_t offset, int64_t bytes,
69 QEMUIOVector *qiov, size_t qiov_offset,
70 BdrvRequestFlags flags)
71{
72 return -ENOTSUP;
73}
74
75
76static void snapshot_access_refresh_filename(BlockDriverState *bs)
76static void GRAPH_RDLOCK snapshot_access_refresh_filename(BlockDriverState *bs)
77{
78 pstrcpy(bs->exact_filename, sizeof(bs->exact_filename),
79 bs->file->bs->filename);
80}
81
82static int snapshot_access_open(BlockDriverState *bs, QDict *options, int flags,
83 Error **errp)
84{

--- 48 unchanged lines hidden ---
77{
78 pstrcpy(bs->exact_filename, sizeof(bs->exact_filename),
79 bs->file->bs->filename);
80}
81
82static int snapshot_access_open(BlockDriverState *bs, QDict *options, int flags,
83 Error **errp)
84{

--- 48 unchanged lines hidden ---