block-io.h (f5a3a270fe2b89d1be39f50ebdd15db80d59014b) block-io.h (e2dd273754eb9a47c33660b4e14074e8e96ada4d)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

205void bdrv_round_to_subclusters(BlockDriverState *bs,
206 int64_t offset, int64_t bytes,
207 int64_t *cluster_offset,
208 int64_t *cluster_bytes);
209
210void bdrv_get_backing_filename(BlockDriverState *bs,
211 char *filename, int filename_size);
212
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

205void bdrv_round_to_subclusters(BlockDriverState *bs,
206 int64_t offset, int64_t bytes,
207 int64_t *cluster_offset,
208 int64_t *cluster_bytes);
209
210void bdrv_get_backing_filename(BlockDriverState *bs,
211 char *filename, int filename_size);
212
213int coroutine_fn GRAPH_RDLOCK
214bdrv_co_change_backing_file(BlockDriverState *bs, const char *backing_file,
215 const char *backing_fmt, bool warn);
216
217int co_wrapper_bdrv_rdlock
218bdrv_change_backing_file(BlockDriverState *bs, const char *backing_file,
219 const char *backing_fmt, bool warn);
220
213int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
214 int64_t pos, int size);
215
216int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
217 int64_t pos, int size);
218
219/*
220 * Returns the alignment in bytes that is required so that no bounce buffer

--- 229 unchanged lines hidden ---
221int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
222 int64_t pos, int size);
223
224int bdrv_load_vmstate(BlockDriverState *bs, uint8_t *buf,
225 int64_t pos, int size);
226
227/*
228 * Returns the alignment in bytes that is required so that no bounce buffer

--- 229 unchanged lines hidden ---