Revision 10b758e8 block/qed.c
b/block/qed.c | ||
---|---|---|
14 | 14 |
|
15 | 15 |
#include "trace.h" |
16 | 16 |
#include "qed.h" |
17 |
#include "qerror.h" |
|
17 | 18 |
|
18 | 19 |
static void qed_aio_cancel(BlockDriverAIOCB *blockacb) |
19 | 20 |
{ |
... | ... | |
311 | 312 |
return -EINVAL; |
312 | 313 |
} |
313 | 314 |
if (s->header.features & ~QED_FEATURE_MASK) { |
314 |
return -ENOTSUP; /* image uses unsupported feature bits */ |
|
315 |
/* image uses unsupported feature bits */ |
|
316 |
char buf[64]; |
|
317 |
snprintf(buf, sizeof(buf), "%" PRIx64, |
|
318 |
s->header.features & ~QED_FEATURE_MASK); |
|
319 |
qerror_report(QERR_UNKNOWN_BLOCK_FORMAT_FEATURE, |
|
320 |
bs->device_name, "QED", buf); |
|
321 |
return -ENOTSUP; |
|
315 | 322 |
} |
316 | 323 |
if (!qed_is_cluster_size_valid(s->header.cluster_size)) { |
317 | 324 |
return -EINVAL; |
Also available in: Unified diff