vvfat.c (91ef38257ad225f7fa17a6583fb792c0be9e8acf) vvfat.c (12fa4af61fb2a08b156134c3b6717534c637c995)
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

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

3036#ifndef _WIN32
3037 unlink(s->qcow_filename);
3038#endif
3039
3040 backing = bdrv_new_open_driver(&vvfat_write_target, NULL, BDRV_O_ALLOW_RDWR,
3041 &error_abort);
3042 *(void**) backing->opaque = s;
3043
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

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

3036#ifndef _WIN32
3037 unlink(s->qcow_filename);
3038#endif
3039
3040 backing = bdrv_new_open_driver(&vvfat_write_target, NULL, BDRV_O_ALLOW_RDWR,
3041 &error_abort);
3042 *(void**) backing->opaque = s;
3043
3044 bdrv_set_backing_hd(s->bs, backing);
3044 bdrv_set_backing_hd(s->bs, backing, &error_abort);
3045 bdrv_unref(backing);
3046
3047 return 0;
3048
3049err:
3050 g_free(s->qcow_filename);
3051 s->qcow_filename = NULL;
3052 return ret;

--- 84 unchanged lines hidden ---
3045 bdrv_unref(backing);
3046
3047 return 0;
3048
3049err:
3050 g_free(s->qcow_filename);
3051 s->qcow_filename = NULL;
3052 return ret;

--- 84 unchanged lines hidden ---