block_int.h (cdf3bc934ad1e5319b03f2c85f381f5ffd2f8ca8) block_int.h (ceaca56feee6a1d682c882300855cad44a67ec8e)
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

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

414 int (*bdrv_debug_resume)(BlockDriverState *bs, const char *tag);
415 bool (*bdrv_debug_is_suspended)(BlockDriverState *bs, const char *tag);
416
417 void (*bdrv_refresh_limits)(BlockDriverState *bs, Error **errp);
418
419 /*
420 * Returns 1 if newly created images are guaranteed to contain only
421 * zeros, 0 otherwise.
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

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

414 int (*bdrv_debug_resume)(BlockDriverState *bs, const char *tag);
415 bool (*bdrv_debug_is_suspended)(BlockDriverState *bs, const char *tag);
416
417 void (*bdrv_refresh_limits)(BlockDriverState *bs, Error **errp);
418
419 /*
420 * Returns 1 if newly created images are guaranteed to contain only
421 * zeros, 0 otherwise.
422 * Must return 0 if .bdrv_has_zero_init_truncate() returns 0.
422 */
423 int (*bdrv_has_zero_init)(BlockDriverState *bs);
424
423 */
424 int (*bdrv_has_zero_init)(BlockDriverState *bs);
425
426 /*
427 * Returns 1 if new areas added by growing the image with
428 * PREALLOC_MODE_OFF contain only zeros, 0 otherwise.
429 */
430 int (*bdrv_has_zero_init_truncate)(BlockDriverState *bs);
431
425 /* Remove fd handlers, timers, and other event loop callbacks so the event
426 * loop is no longer in use. Called with no in-flight requests and in
427 * depth-first traversal order with parents before child nodes.
428 */
429 void (*bdrv_detach_aio_context)(BlockDriverState *bs);
430
431 /* Add fd handlers, timers, and other event loop callbacks so I/O requests
432 * can be processed again. Called with no in-flight requests and in

--- 848 unchanged lines hidden ---
432 /* Remove fd handlers, timers, and other event loop callbacks so the event
433 * loop is no longer in use. Called with no in-flight requests and in
434 * depth-first traversal order with parents before child nodes.
435 */
436 void (*bdrv_detach_aio_context)(BlockDriverState *bs);
437
438 /* Add fd handlers, timers, and other event loop callbacks so I/O requests
439 * can be processed again. Called with no in-flight requests and in

--- 848 unchanged lines hidden ---