vvfat.c (8507c9d5c9a62de2a0e281b640f995e26eac46af) vvfat.c (fb62b5889695825ea22f29d4eadb9ac1b8935a71)
1/* vim:set shiftwidth=4 ts=4: */
2/*
3 * QEMU Block driver for virtual VFAT (shadows a local directory)
4 *
5 * Copyright (c) 2004,2005 Johannes E. Schindelin
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

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

3125 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off");
3126 qdict_set_default_str(child_options, BDRV_OPT_AUTO_READ_ONLY, "off");
3127 qdict_set_default_str(child_options, BDRV_OPT_CACHE_NO_FLUSH, "on");
3128}
3129
3130static const BdrvChildClass child_vvfat_qcow = {
3131 .parent_is_bds = true,
3132 .inherit_options = vvfat_qcow_options,
1/* vim:set shiftwidth=4 ts=4: */
2/*
3 * QEMU Block driver for virtual VFAT (shadows a local directory)
4 *
5 * Copyright (c) 2004,2005 Johannes E. Schindelin
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

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

3125 qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off");
3126 qdict_set_default_str(child_options, BDRV_OPT_AUTO_READ_ONLY, "off");
3127 qdict_set_default_str(child_options, BDRV_OPT_CACHE_NO_FLUSH, "on");
3128}
3129
3130static const BdrvChildClass child_vvfat_qcow = {
3131 .parent_is_bds = true,
3132 .inherit_options = vvfat_qcow_options,
3133 .get_parent_aio_context = child_of_bds_get_parent_aio_context,
3133};
3134
3135static int enable_write_target(BlockDriverState *bs, Error **errp)
3136{
3137 BDRVVVFATState *s = bs->opaque;
3138 BlockDriver *bdrv_qcow = NULL;
3139 BlockDriverState *backing;
3140 QemuOpts *opts = NULL;

--- 146 unchanged lines hidden ---
3134};
3135
3136static int enable_write_target(BlockDriverState *bs, Error **errp)
3137{
3138 BDRVVVFATState *s = bs->opaque;
3139 BlockDriver *bdrv_qcow = NULL;
3140 BlockDriverState *backing;
3141 QemuOpts *opts = NULL;

--- 146 unchanged lines hidden ---