cloop.c (019d6b8ff0d495ded6977f24a4e8fd1c7fec09e0) | cloop.c (66f82ceed6781261c09e65fb440ca76842fd0500) |
---|---|
1/* 2 * QEMU Block driver for CLOOP images 3 * 4 * Copyright (c) 2004 Johannes E. Schindelin 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 --- 144 unchanged lines hidden (view full) --- 153 free(s->uncompressed_block); 154 inflateEnd(&s->zstream); 155} 156 157static BlockDriver bdrv_cloop = { 158 .format_name = "cloop", 159 .instance_size = sizeof(BDRVCloopState), 160 .bdrv_probe = cloop_probe, | 1/* 2 * QEMU Block driver for CLOOP images 3 * 4 * Copyright (c) 2004 Johannes E. Schindelin 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 --- 144 unchanged lines hidden (view full) --- 153 free(s->uncompressed_block); 154 inflateEnd(&s->zstream); 155} 156 157static BlockDriver bdrv_cloop = { 158 .format_name = "cloop", 159 .instance_size = sizeof(BDRVCloopState), 160 .bdrv_probe = cloop_probe, |
161 .bdrv_open = cloop_open, | 161 .bdrv_file_open = cloop_open, |
162 .bdrv_read = cloop_read, 163 .bdrv_close = cloop_close, 164}; 165 166static void bdrv_cloop_init(void) 167{ 168 bdrv_register(&bdrv_cloop); 169} 170 171block_init(bdrv_cloop_init); | 162 .bdrv_read = cloop_read, 163 .bdrv_close = cloop_close, 164}; 165 166static void bdrv_cloop_init(void) 167{ 168 bdrv_register(&bdrv_cloop); 169} 170 171block_init(bdrv_cloop_init); |