vvfat.c (235e59cf03ed75d0ce96c97343194ed11c146231) | vvfat.c (af175e85f92c870386ad74f466e29537b79611d3) |
---|---|
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 --- 1135 unchanged lines hidden (view full) --- 1144 Error *local_err = NULL; 1145 int ret; 1146 1147#ifdef DEBUG 1148 vvv = s; 1149#endif 1150 1151 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort); | 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 --- 1135 unchanged lines hidden (view full) --- 1144 Error *local_err = NULL; 1145 int ret; 1146 1147#ifdef DEBUG 1148 vvv = s; 1149#endif 1150 1151 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort); |
1152 if (!qemu_opts_absorb_qdict(opts, options, &local_err)) { 1153 error_propagate(errp, local_err); | 1152 if (!qemu_opts_absorb_qdict(opts, options, errp)) { |
1154 ret = -EINVAL; 1155 goto fail; 1156 } 1157 1158 dirname = qemu_opt_get(opts, "dir"); 1159 if (!dirname) { 1160 error_setg(errp, "vvfat block driver requires a 'dir' option"); 1161 ret = -EINVAL; --- 2125 unchanged lines hidden --- | 1153 ret = -EINVAL; 1154 goto fail; 1155 } 1156 1157 dirname = qemu_opt_get(opts, "dir"); 1158 if (!dirname) { 1159 error_setg(errp, "vvfat block driver requires a 'dir' option"); 1160 ret = -EINVAL; --- 2125 unchanged lines hidden --- |