vvfat.c (34b5d2c68eb4082c288e70fb99c61af8f7b96fde) | vvfat.c (cc84d90ff54c025190dbe49ec5fea1268217c5f2) |
---|---|
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 --- 2914 unchanged lines hidden (view full) --- 2923 goto err; 2924 } 2925 2926 bdrv_qcow = bdrv_find_format("qcow"); 2927 options = parse_option_parameters("", bdrv_qcow->create_options, NULL); 2928 set_option_parameter_int(options, BLOCK_OPT_SIZE, s->sector_count * 512); 2929 set_option_parameter(options, BLOCK_OPT_BACKING_FILE, "fat:"); 2930 | 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 --- 2914 unchanged lines hidden (view full) --- 2923 goto err; 2924 } 2925 2926 bdrv_qcow = bdrv_find_format("qcow"); 2927 options = parse_option_parameters("", bdrv_qcow->create_options, NULL); 2928 set_option_parameter_int(options, BLOCK_OPT_SIZE, s->sector_count * 512); 2929 set_option_parameter(options, BLOCK_OPT_BACKING_FILE, "fat:"); 2930 |
2931 ret = bdrv_create(bdrv_qcow, s->qcow_filename, options); | 2931 ret = bdrv_create(bdrv_qcow, s->qcow_filename, options, &local_err); |
2932 if (ret < 0) { | 2932 if (ret < 0) { |
2933 qerror_report_err(local_err); 2934 error_free(local_err); |
|
2933 goto err; 2934 } 2935 2936 s->qcow = bdrv_new(""); 2937 2938 ret = bdrv_open(s->qcow, s->qcow_filename, NULL, 2939 BDRV_O_RDWR | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH, bdrv_qcow, 2940 &local_err); --- 84 unchanged lines hidden --- | 2935 goto err; 2936 } 2937 2938 s->qcow = bdrv_new(""); 2939 2940 ret = bdrv_open(s->qcow, s->qcow_filename, NULL, 2941 BDRV_O_RDWR | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH, bdrv_qcow, 2942 &local_err); --- 84 unchanged lines hidden --- |