bochs.c (0a7fc983ceb21ee45a9ad4dbc9163394f8aa0fb6) | bochs.c (66f82ceed6781261c09e65fb440ca76842fd0500) |
---|---|
1/* 2 * Block driver for the various disk image formats used by Bochs 3 * Currently only for "growing" type in read-only mode 4 * 5 * Copyright (c) 2005 Alex Beregszaszi 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 238 unchanged lines hidden (view full) --- 247 qemu_free(s->catalog_bitmap); 248 close(s->fd); 249} 250 251static BlockDriver bdrv_bochs = { 252 .format_name = "bochs", 253 .instance_size = sizeof(BDRVBochsState), 254 .bdrv_probe = bochs_probe, | 1/* 2 * Block driver for the various disk image formats used by Bochs 3 * Currently only for "growing" type in read-only mode 4 * 5 * Copyright (c) 2005 Alex Beregszaszi 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 238 unchanged lines hidden (view full) --- 247 qemu_free(s->catalog_bitmap); 248 close(s->fd); 249} 250 251static BlockDriver bdrv_bochs = { 252 .format_name = "bochs", 253 .instance_size = sizeof(BDRVBochsState), 254 .bdrv_probe = bochs_probe, |
255 .bdrv_open = bochs_open, | 255 .bdrv_file_open = bochs_open, |
256 .bdrv_read = bochs_read, 257 .bdrv_close = bochs_close, 258}; 259 260static void bdrv_bochs_init(void) 261{ 262 bdrv_register(&bdrv_bochs); 263} 264 265block_init(bdrv_bochs_init); | 256 .bdrv_read = bochs_read, 257 .bdrv_close = bochs_close, 258}; 259 260static void bdrv_bochs_init(void) 261{ 262 bdrv_register(&bdrv_bochs); 263} 264 265block_init(bdrv_bochs_init); |