l2t_off = be64_to_cpu(table->l1_table[l1t_idx]);
if (l2t_off & QCOW_OFLAG_COMPRESSED) {
- pr_warning("compressed sectors are not supported");
+ pr_warning("compressed clusters are not supported");
+ goto error;
+ }
+ if (!(l2t_off & QCOW_OFLAG_COPIED)) {
+ pr_warning("copy-on-write clusters are not supported");
goto error;
}
clust_start = be64_to_cpu(l2t->table[l2t_idx]);
if (clust_start & QCOW_OFLAG_COMPRESSED) {
- pr_warning("compressed sectors are not supported");
+ pr_warning("compressed clusters are not supported");
+ goto error;
+ }
+ if (!(clust_start & QCOW_OFLAG_COPIED)) {
+ pr_warning("copy-on-write clusters are not supported");
goto error;
}