block_int.h (ca8c0fab9504f000216308cafc833eb957fe9284) block_int.h (fbe40ff780564526e6f639b3b78366727d34955c)
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

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

265
266 /* optimal transfer length in sectors */
267 int opt_transfer_length;
268
269 /* memory alignment so that no bounce buffer is needed */
270 size_t opt_mem_alignment;
271} BlockLimits;
272
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

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

265
266 /* optimal transfer length in sectors */
267 int opt_transfer_length;
268
269 /* memory alignment so that no bounce buffer is needed */
270 size_t opt_mem_alignment;
271} BlockLimits;
272
273typedef struct BdrvOpBlocker BdrvOpBlocker;
274
273/*
274 * Note: the function bdrv_append() copies and swaps contents of
275 * BlockDriverStates, so if you add new fields to this struct, please
276 * inspect bdrv_append() to determine if the new fields need to be
277 * copied as well.
278 */
279struct BlockDriverState {
280 int64_t total_sectors; /* if we are reading a disk image, give its

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

355 /* element of the list of "drives" the guest sees */
356 QTAILQ_ENTRY(BlockDriverState) device_list;
357 QLIST_HEAD(, BdrvDirtyBitmap) dirty_bitmaps;
358 int refcnt;
359 int in_use; /* users other than guest access, eg. block migration */
360
361 QLIST_HEAD(, BdrvTrackedRequest) tracked_requests;
362
275/*
276 * Note: the function bdrv_append() copies and swaps contents of
277 * BlockDriverStates, so if you add new fields to this struct, please
278 * inspect bdrv_append() to determine if the new fields need to be
279 * copied as well.
280 */
281struct BlockDriverState {
282 int64_t total_sectors; /* if we are reading a disk image, give its

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

357 /* element of the list of "drives" the guest sees */
358 QTAILQ_ENTRY(BlockDriverState) device_list;
359 QLIST_HEAD(, BdrvDirtyBitmap) dirty_bitmaps;
360 int refcnt;
361 int in_use; /* users other than guest access, eg. block migration */
362
363 QLIST_HEAD(, BdrvTrackedRequest) tracked_requests;
364
365 /* operation blockers */
366 QLIST_HEAD(, BdrvOpBlocker) op_blockers[BLOCK_OP_TYPE_MAX];
367
363 /* long-running background operation */
364 BlockJob *job;
365
366 QDict *options;
367 BlockdevDetectZeroesOptions detect_zeroes;
368};
369
370int get_tmp_filename(char *filename, int size);

--- 132 unchanged lines hidden ---
368 /* long-running background operation */
369 BlockJob *job;
370
371 QDict *options;
372 BlockdevDetectZeroesOptions detect_zeroes;
373};
374
375int get_tmp_filename(char *filename, int size);

--- 132 unchanged lines hidden ---