block: Remove unused s->hd in various drivers

All drivers use bs->file instead of s->hd for quite a while now, so it's time
to remove s->hd.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Kevin Wolf 2010-11-16 18:55:01 +01:00
parent 5cbdebe39e
commit 80465c5016
5 changed files with 0 additions and 6 deletions

View File

@ -54,7 +54,6 @@ typedef struct QCowHeader {
#define L2_CACHE_SIZE 16 #define L2_CACHE_SIZE 16
typedef struct BDRVQcowState { typedef struct BDRVQcowState {
BlockDriverState *hd;
int cluster_bits; int cluster_bits;
int cluster_size; int cluster_size;
int cluster_sectors; int cluster_sectors;

View File

@ -79,7 +79,6 @@ typedef struct QCowSnapshot {
} QCowSnapshot; } QCowSnapshot;
typedef struct BDRVQcowState { typedef struct BDRVQcowState {
BlockDriverState *hd;
int cluster_bits; int cluster_bits;
int cluster_size; int cluster_size;
int cluster_sectors; int cluster_sectors;

View File

@ -186,7 +186,6 @@ typedef struct {
} VdiHeader; } VdiHeader;
typedef struct { typedef struct {
BlockDriverState *hd;
/* The block map entries are little endian (even in memory). */ /* The block map entries are little endian (even in memory). */
uint32_t *bmap; uint32_t *bmap;
/* Size of block (bytes). */ /* Size of block (bytes). */

View File

@ -61,7 +61,6 @@ typedef struct {
#define L2_CACHE_SIZE 16 #define L2_CACHE_SIZE 16
typedef struct BDRVVmdkState { typedef struct BDRVVmdkState {
BlockDriverState *hd;
int64_t l1_table_offset; int64_t l1_table_offset;
int64_t l1_backup_table_offset; int64_t l1_backup_table_offset;
uint32_t *l1_table; uint32_t *l1_table;

View File

@ -110,8 +110,6 @@ struct vhd_dyndisk_header {
}; };
typedef struct BDRVVPCState { typedef struct BDRVVPCState {
BlockDriverState *hd;
uint8_t footer_buf[HEADER_SIZE]; uint8_t footer_buf[HEADER_SIZE];
uint64_t free_data_block_offset; uint64_t free_data_block_offset;
int max_table_entries; int max_table_entries;