Revision 975b092b
b/nbd.c | ||
---|---|---|
388 | 388 |
} |
389 | 389 |
|
390 | 390 |
if (len > sizeof(data)) { |
391 |
LOG("len (%u) is larger than max len (%u)", |
|
392 |
len, sizeof(data)); |
|
391 |
LOG("len (%u) is larger than max len (%lu)",
|
|
392 |
len, (unsigned long)sizeof(data));
|
|
393 | 393 |
errno = EINVAL; |
394 | 394 |
return -1; |
395 | 395 |
} |
b/qemu-doc.texi | ||
---|---|---|
1318 | 1318 |
* disk_images_snapshot_mode:: Snapshot mode |
1319 | 1319 |
* vm_snapshots:: VM snapshots |
1320 | 1320 |
* qemu_img_invocation:: qemu-img Invocation |
1321 |
* qemu_nbd_invocation:: qemu-nbd Invocation |
|
1321 | 1322 |
* host_drives:: Using host drives |
1322 | 1323 |
* disk_images_fat_images:: Virtual FAT disk images |
1323 | 1324 |
@end menu |
... | ... | |
1400 | 1401 |
|
1401 | 1402 |
@include qemu-img.texi |
1402 | 1403 |
|
1404 |
@node qemu_nbd_invocation |
|
1405 |
@subsection @code{qemu-nbd} Invocation |
|
1406 |
|
|
1407 |
@include qemu-nbd.texi |
|
1408 |
|
|
1403 | 1409 |
@node host_drives |
1404 | 1410 |
@subsection Using host drives |
1405 | 1411 |
|
b/qemu-nbd.c | ||
---|---|---|
21 | 21 |
#include "block_int.h" |
22 | 22 |
#include "nbd.h" |
23 | 23 |
|
24 |
#include <malloc.h> |
|
25 | 24 |
#include <stdarg.h> |
26 | 25 |
#include <stdio.h> |
27 | 26 |
#include <getopt.h> |
... | ... | |
168 | 167 |
{ "partition", 1, 0, 'P' }, |
169 | 168 |
{ "snapshot", 0, 0, 's' }, |
170 | 169 |
{ "verbose", 0, 0, 'v' }, |
170 |
{ NULL, 0, 0, 0 } |
|
171 | 171 |
}; |
172 | 172 |
int ch; |
173 | 173 |
int opt_ind = 0; |
Also available in: Unified diff