block_int.h (787e4a8500020695eb391e2f1cc4767ee071d441) block_int.h (6963a30d82413bea36c7545137b090b284cc2b18)
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

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

70 uint64_t ios[2];
71} BlockIOBaseValue;
72
73struct BlockDriver {
74 const char *format_name;
75 int instance_size;
76 int (*bdrv_probe)(const uint8_t *buf, int buf_size, const char *filename);
77 int (*bdrv_probe_device)(const char *filename);
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

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

70 uint64_t ios[2];
71} BlockIOBaseValue;
72
73struct BlockDriver {
74 const char *format_name;
75 int instance_size;
76 int (*bdrv_probe)(const uint8_t *buf, int buf_size, const char *filename);
77 int (*bdrv_probe_device)(const char *filename);
78 void (*bdrv_parse_filename)(const char *filename, QDict *options, Error **errp);
78
79 /* For handling image reopen for split or non-split files */
80 int (*bdrv_reopen_prepare)(BDRVReopenState *reopen_state,
81 BlockReopenQueue *queue, Error **errp);
82 void (*bdrv_reopen_commit)(BDRVReopenState *reopen_state);
83 void (*bdrv_reopen_abort)(BDRVReopenState *reopen_state);
84
85 int (*bdrv_open)(BlockDriverState *bs, QDict *options, int flags);

--- 293 unchanged lines hidden ---
79
80 /* For handling image reopen for split or non-split files */
81 int (*bdrv_reopen_prepare)(BDRVReopenState *reopen_state,
82 BlockReopenQueue *queue, Error **errp);
83 void (*bdrv_reopen_commit)(BDRVReopenState *reopen_state);
84 void (*bdrv_reopen_abort)(BDRVReopenState *reopen_state);
85
86 int (*bdrv_open)(BlockDriverState *bs, QDict *options, int flags);

--- 293 unchanged lines hidden ---