Skip to contentSkip to conversation

Failing iotests in v2.3.0-rc2 / master

Qemu-devel Andreas Färber 5 participants 12 messages Apr 11, 2015 – Apr 15, 2015 Block layer

lore
Share & tools
lore
#0 lore raw

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)
--- /home/andreas/QEMU/qemu/tests/qemu-iotests/033.out	2015-04-08
20:19:11.947290578 +0200
+++ 033.out.bad	2015-04-11 04:06:11.939300375 +0200
@@ -2,52 +2,46 @@
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728

== preparing image ==
-wrote 1024/1024 bytes at offset 512
-1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 1536/1536 bytes at offset 131072
-1.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 131072/131072 bytes at offset 1024
-128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +write failed: Operation not supported
+write failed: Operation not supported
+write failed: Operation not supported

== verifying patterns (1) ==
+Pattern verification failed at offset 512, 512 bytes
read 512/512 bytes at offset 512
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) read 131072/131072 bytes at offset 1024
128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Pattern verification failed at offset 132096, 512 bytes
read 512/512 bytes at offset 132096
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

== rewriting zeroes ==
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +write failed: Operation not supported
+write failed: Operation not supported

== verifying patterns (2) ==
read 131072/131072 bytes at offset 1024
128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

== preparing image ==
-wrote 1024/1024 bytes at offset 512
-1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 1536/1536 bytes at offset 131072
-1.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 131072/131072 bytes at offset 1024
-128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +write failed: Operation not supported
+write failed: Operation not supported
+write failed: Operation not supported

== verifying patterns (1) ==
+Pattern verification failed at offset 512, 512 bytes
read 512/512 bytes at offset 512
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) read 131072/131072 bytes at offset 1024
128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Pattern verification failed at offset 132096, 512 bytes
read 512/512 bytes at offset 132096
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

== rewriting zeroes ==
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +write failed: Operation not supported
+write failed: Operation not supported

== verifying patterns (2) ==
read 131072/131072 bytes at offset 1024
[...]
Not run: 017 018 019 020 024 025 027 028 029 031 034 035 036 037 038 039 042 045 046 047 048 050 053 054 058 059 060 062 063 065 066 067 068 069 071 073 074 075 077 078 081 082 084 086 087 088 089 090 092 094 095 098 101 102 103 107 108 110 111 113 114 116 123 128 130
Failures: 033
Failed 1 of 19 tests

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
#1 lore raw

Am 11.04.2015 um 05:41 schrieb Andreas Färber:

Quoted 5 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

067 is failing for -qcow2 on ppc64 (no $QEMU_PROG => qemu-system-ppc64). Seems to hang after the below output.

Andreas

$ tests/qemu-iotests-quick.sh
[...]
[  477s] 067                [14:16:53] [14:16:54] - output mismatch (see
067.out.bad)
[  477s] ---
/usr/src/packages/BUILD/qemu-2.3.0-rc2/tests/qemu-iotests/067.out
2015-04-02 22:10:37.000000000 +0000
[  477s] +++ 067.out.bad	2015-04-11 14:16:54.200000003 +0000
[  477s] @@ -60,7 +60,7 @@
[  477s]          },
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -83,7 +83,9 @@
[  477s]      ]
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "GenericError",
[  477s] +        "desc": "Bus 'pci.0' does not support hotplugging"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] @@ -95,34 +97,58 @@
[  477s]          "seconds":  TIMESTAMP,
[  477s]          "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "path": "/machine/peripheral/virtio0/virtio-backend"
[  477s] -    }
[  477s] +    "event": "RESET"
[  477s]  }
[  477s]  {
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] +    "return": [
[  477s] +        {
[  477s] +            "io-status": "ok",
[  477s] +            "device": "disk",
[  477s] +            "locked": false,
[  477s] +            "removable": false,
[  477s] +            "inserted": {
[  477s] +                "iops_rd": 0,
[  477s] +                "detect_zeroes": "off",
[  477s] +                "image": {
[  477s] +                    "virtual-size": 134217728,
[  477s] +                    "filename": "TEST_DIR/t.qcow2",
[  477s] +                    "cluster-size": 65536,
[  477s] +                    "format": "qcow2",
[  477s] +                    "actual-size": SIZE,
[  477s] +                    "format-specific": {
[  477s] +                        "type": "qcow2",
[  477s]      "data": {
[  477s] -        "device": "virtio0",
[  477s] -        "path": "/machine/peripheral/virtio0"
[  477s] -    }
[  477s] +                            "compat": "1.1",
[  477s] +                            "lazy-refcounts": false,
[  477s] +                            "refcount-bits": 16,
[  477s] +                            "corrupt": false
[  477s]  }
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "RESET"
[  477s] -}
[  477s] -{
[  477s] -    "return": [
[  477s] +                    "dirty-flag": false
[  477s] +                },
[  477s] +                "iops_wr": 0,
[  477s] +                "ro": false,
[  477s] +                "backing_file_depth": 0,
[  477s] +                "drv": "qcow2",
[  477s] +                "iops": 0,
[  477s] +                "bps_wr": 0,
[  477s] +                "write_threshold": 0,
[  477s] +                "encrypted": false,
[  477s] +                "bps": 0,
[  477s] +                "bps_rd": 0,
[  477s] +                "cache": {
[  477s] +                    "no-flush": false,
[  477s] +                    "direct": false,
[  477s] +                    "writeback": true
[  477s] +                },
[  477s] +                "file": "TEST_DIR/t.qcow2",
[  477s] +                "encryption_key_missing": false
[  477s] +            },
[  477s] +            "type": "unknown"
[  477s] +        },
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -162,18 +188,7 @@
[  477s]      },
[  477s]      "event": "DEVICE_TRAY_MOVED",
[  477s]      "data": {
[  477s] -        "device": "ide1-cd0",
[  477s] -        "tray-open": true
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_TRAY_MOVED",
[  477s] -    "data": {
[  477s] -        "device": "floppy0",
[  477s] +        "device": "scsi0-cd2",
[  477s]          "tray-open": true
[  477s]      }
[  477s]  }
[  477s] @@ -238,7 +253,7 @@
[  477s]          },
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -261,11 +276,15 @@
[  477s]      ]
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "GenericError",
[  477s] +        "desc": "Bus 'pci.0' does not support hotplugging"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "DeviceNotFound",
[  477s] +        "desc": "Device 'virtio0' not found"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] @@ -277,34 +296,58 @@
[  477s]          "seconds":  TIMESTAMP,
[  477s]          "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "path": "/machine/peripheral/virtio0/virtio-backend"
[  477s] -    }
[  477s] +    "event": "RESET"
[  477s]  }
[  477s]  {
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] +    "return": [
[  477s] +        {
[  477s] +            "device": "disk",
[  477s] +            "locked": false,
[  477s] +            "removable": true,
[  477s] +            "inserted": {
[  477s] +                "iops_rd": 0,
[  477s] +                "detect_zeroes": "off",
[  477s] +                "image": {
[  477s] +                    "virtual-size": 134217728,
[  477s] +                    "filename": "TEST_DIR/t.qcow2",
[  477s] +                    "cluster-size": 65536,
[  477s] +                    "format": "qcow2",
[  477s] +                    "actual-size": SIZE,
[  477s] +                    "format-specific": {
[  477s] +                        "type": "qcow2",
[  477s]      "data": {
[  477s] -        "device": "virtio0",
[  477s] -        "path": "/machine/peripheral/virtio0"
[  477s] -    }
[  477s] +                            "compat": "1.1",
[  477s] +                            "lazy-refcounts": false,
[  477s] +                            "refcount-bits": 16,
[  477s] +                            "corrupt": false
[  477s]  }
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "RESET"
[  477s] -}
[  477s] -{
[  477s] -    "return": [
[  477s] +                    "dirty-flag": false
[  477s] +                },
[  477s] +                "iops_wr": 0,
[  477s] +                "ro": false,
[  477s] +                "backing_file_depth": 0,
[  477s] +                "drv": "qcow2",
[  477s] +                "iops": 0,
[  477s] +                "bps_wr": 0,
[  477s] +                "write_threshold": 0,
[  477s] +                "encrypted": false,
[  477s] +                "bps": 0,
[  477s] +                "bps_rd": 0,
[  477s] +                "cache": {
[  477s] +                    "no-flush": false,
[  477s] +                    "direct": false,
[  477s] +                    "writeback": true
[  477s] +                },
[  477s] +                "file": "TEST_DIR/t.qcow2",
[  477s] +                "encryption_key_missing": false
[  477s] +            },
[  477s] +            "tray_open": false,
[  477s] +            "type": "unknown"
[  477s] +        },
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -344,18 +387,7 @@
[  477s]      },
[  477s]      "event": "DEVICE_TRAY_MOVED",
[  477s]      "data": {
[  477s] -        "device": "ide1-cd0",
[  477s] -        "tray-open": true
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_TRAY_MOVED",
[  477s] -    "data": {
[  477s] -        "device": "floppy0",
[  477s] +        "device": "scsi0-cd2",
[  477s]          "tray-open": true
[  477s]      }
[  477s]  }
[  477s] @@ -378,7 +410,7 @@
[  477s]      "return": [
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -446,11 +478,15 @@
[  477s]      ]
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "GenericError",
[  477s] +        "desc": "Bus 'pci.0' does not support hotplugging"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "DeviceNotFound",
[  477s] +        "desc": "Device 'virtio0' not found"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] @@ -462,34 +498,13 @@
[  477s]          "seconds":  TIMESTAMP,
[  477s]          "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "path": "/machine/peripheral/virtio0/virtio-backend"
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "device": "virtio0",
[  477s] -        "path": "/machine/peripheral/virtio0"
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s]      "event": "RESET"
[  477s]  }
[  477s]  {
[  477s]      "return": [
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -508,6 +523,51 @@
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s]              "type": "unknown"
[  477s] +        },
[  477s] +        {
[  477s] +            "device": "disk",
[  477s] +            "locked": false,
[  477s] +            "removable": true,
[  477s] +            "inserted": {
[  477s] +                "iops_rd": 0,
[  477s] +                "detect_zeroes": "off",
[  477s] +                "image": {
[  477s] +                    "virtual-size": 134217728,
[  477s] +                    "filename": "TEST_DIR/t.qcow2",
[  477s] +                    "cluster-size": 65536,
[  477s] +                    "format": "qcow2",
[  477s] +                    "actual-size": SIZE,
[  477s] +                    "format-specific": {
[  477s] +                        "type": "qcow2",
[  477s] +                        "data": {
[  477s] +                            "compat": "1.1",
[  477s] +                            "lazy-refcounts": false,
[  477s] +                            "refcount-bits": 16,
[  477s] +                            "corrupt": false
[  477s] +                        }
[  477s] +                    },
[  477s] +                    "dirty-flag": false
[  477s] +                },
[  477s] +                "iops_wr": 0,
[  477s] +                "ro": false,
[  477s] +                "backing_file_depth": 0,
[  477s] +                "drv": "qcow2",
[  477s] +                "iops": 0,
[  477s] +                "bps_wr": 0,
[  477s] +                "write_threshold": 0,
[  477s] +                "encrypted": false,
[  477s] +                "bps": 0,
[  477s] +                "bps_rd": 0,
[  477s] +                "cache": {
[  477s] +                    "no-flush": false,
[  477s] +                    "direct": false,
[  477s] +                    "writeback": true
[  477s] +                },
[  477s] +                "file": "TEST_DIR/t.qcow2",
[  477s] +                "encryption_key_missing": false
[  477s] +            },
[  477s] +            "tray_open": false,
[  477s] +            "type": "unknown"
[  477s]          }
[  477s]      ]
[  477s]  }
[  477s] @@ -529,18 +589,7 @@
[  477s]      },
[  477s]      "event": "DEVICE_TRAY_MOVED",
[  477s]      "data": {
[  477s] -        "device": "ide1-cd0",
[  477s] -        "tray-open": true
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_TRAY_MOVED",
[  477s] -    "data": {
[  477s] -        "device": "floppy0",
[  477s] +        "device": "scsi0-cd2",
[  477s]          "tray-open": true
[  477s]      }
[  477s]  }
[  477s] @@ -564,7 +613,7 @@
[  477s]      "return": [
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -632,11 +681,15 @@
[  477s]      ]
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "GenericError",
[  477s] +        "desc": "Bus 'pci.0' does not support hotplugging"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] -    "return": {
[  477s] +    "error": {
[  477s] +        "class": "DeviceNotFound",
[  477s] +        "desc": "Device 'virtio0' not found"
[  477s]      }
[  477s]  }
[  477s]  {
[  477s] @@ -648,34 +701,13 @@
[  477s]          "seconds":  TIMESTAMP,
[  477s]          "microseconds":  TIMESTAMP
[  477s]      },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "path": "/machine/peripheral/virtio0/virtio-backend"
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_DELETED",
[  477s] -    "data": {
[  477s] -        "device": "virtio0",
[  477s] -        "path": "/machine/peripheral/virtio0"
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s]      "event": "RESET"
[  477s]  }
[  477s]  {
[  477s]      "return": [
[  477s]          {
[  477s]              "io-status": "ok",
[  477s] -            "device": "ide1-cd0",
[  477s] +            "device": "scsi0-cd2",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s]              "tray_open": false,
[  477s] @@ -696,7 +728,6 @@
[  477s]              "type": "unknown"
[  477s]          },
[  477s]          {
[  477s] -            "io-status": "ok",
[  477s]              "device": "disk",
[  477s]              "locked": false,
[  477s]              "removable": true,
[  477s] @@ -761,18 +792,7 @@
[  477s]      },
[  477s]      "event": "DEVICE_TRAY_MOVED",
[  477s]      "data": {
[  477s] -        "device": "ide1-cd0",
[  477s] -        "tray-open": true
[  477s] -    }
[  477s] -}
[  477s] -{
[  477s] -    "timestamp": {
[  477s] -        "seconds":  TIMESTAMP,
[  477s] -        "microseconds":  TIMESTAMP
[  477s] -    },
[  477s] -    "event": "DEVICE_TRAY_MOVED",
[  477s] -    "data": {
[  477s] -        "device": "floppy0",
[  477s] +        "device": "scsi0-cd2",
[  477s]          "tray-open": true
[  477s]      }
[  477s]  }
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
#2 lore raw
Quoted 2 lines · Andreas Färber

067 is failing for -qcow2 on ppc64 (no $QEMU_PROG => qemu-system-ppc64). Seems to hang after the below output.

It really needs a PC machine, it seems.

Paolo

#3 lore raw
In reply to Andreas Färber
Quoted 4 lines · Andreas Färber

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

I assume this was a one-off and you cannot reproduce it reliably.

Do you have any data on what call it might have hung on?

Quoted 96 lines

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)
--- /home/andreas/QEMU/qemu/tests/qemu-iotests/033.out	2015-04-08
20:19:11.947290578 +0200
+++ 033.out.bad	2015-04-11 04:06:11.939300375 +0200
(quoted diff) +14 -20
@@ -2,52 +2,46 @@
  Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
 
  == preparing image ==
-wrote 1024/1024 bytes at offset 512
-1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 1536/1536 bytes at offset 131072
-1.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 131072/131072 bytes at offset 1024
-128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+write failed: Operation not supported
+write failed: Operation not supported
+write failed: Operation not supported
 
  == verifying patterns (1) ==
+Pattern verification failed at offset 512, 512 bytes
  read 512/512 bytes at offset 512
  512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
  read 131072/131072 bytes at offset 1024
  128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Pattern verification failed at offset 132096, 512 bytes
  read 512/512 bytes at offset 132096
  512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 
  == rewriting zeroes ==
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+write failed: Operation not supported
+write failed: Operation not supported
 
  == verifying patterns (2) ==
  read 131072/131072 bytes at offset 1024
  128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 
  == preparing image ==
-wrote 1024/1024 bytes at offset 512
-1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 1536/1536 bytes at offset 131072
-1.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 131072/131072 bytes at offset 1024
-128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+write failed: Operation not supported
+write failed: Operation not supported
+write failed: Operation not supported
 
  == verifying patterns (1) ==
+Pattern verification failed at offset 512, 512 bytes
  read 512/512 bytes at offset 512
  512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
  read 131072/131072 bytes at offset 1024
  128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Pattern verification failed at offset 132096, 512 bytes
  read 512/512 bytes at offset 132096
  512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 
  == rewriting zeroes ==
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-wrote 65536/65536 bytes at offset 65536
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+write failed: Operation not supported
+write failed: Operation not supported
 
  == verifying patterns (2) ==
  read 131072/131072 bytes at offset 1024
[...]

Not run: 017 018 019 020 024 025 027 028 029 031 034 035 036 037 038 039 042 045 046 047 048 050 053 054 058 059 060 062 063 065 066 067 068 069 071 073 074 075 077 078 081 082 084 086 087 088 089 090 092 094 095 098 101 102 103 107 108 110 111 113 114 116 123 128 130
Failures: 033
Failed 1 of 19 tests

#4 lore raw

Am 13.04.2015 um 17:29 schrieb John Snow:

Quoted 7 lines · Andreas Färber
Quoted 4 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

I assume this was a one-off and you cannot reproduce it reliably.

No, I could reproduce it both locally and in our build service. Note that this is about -qcow, not -qcow2.

Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
#5 lore raw
In reply to Andreas Färber

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

block/vhdx.c +1 -1
@@ -1285,7 +1285,7 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState *bs, int64_t sector_num,
                         iov2.iov_base = qemu_blockalign(bs, iov2.iov_len);
                         memset(iov2.iov_base, 0, iov2.iov_len);
                         qemu_iovec_concat_iov(&hd_qiov, &iov2, 1, 0,
-                                              sinfo.block_offset);
+                                              iov2.iov_len);
                         sectors_to_write += iov2.iov_len >> BDRV_SECTOR_BITS;
                     }
                 }
#6 lore raw
Quoted 32 lines · Kevin Wolf

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

Quoted 7 lines

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

Kevin,

Yes, looking at that fix it makes sense - we are wanting to pad the back part of the block after the actual data with zeros. That back length should be (block size - (bytes avail + block offset)), which is iov2.iov_len.

There are two reasons I think we haven't seen this issue (it has been hidden):

1.) If bs->file supports zero init, we don't do any of this

2.) This is done for the case when the existing BAT state is PAYLOAD_BLOCK_ZERO. Until recently (commit 30af51c), we didn't create VHDX files with blocks in the PAYLOAD_BLOCK_ZERO state.

So it has been a latent bug in a hitherto rarely (if ever) exercised path.

Jeff

Quoted 12 lines
block/vhdx.c +1 -1
@@ -1285,7 +1285,7 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState *bs, int64_t sector_num,
                         iov2.iov_base = qemu_blockalign(bs, iov2.iov_len);
                         memset(iov2.iov_base, 0, iov2.iov_len);
                         qemu_iovec_concat_iov(&hd_qiov, &iov2, 1, 0,
-                                              sinfo.block_offset);
+                                              iov2.iov_len);
                         sectors_to_write += iov2.iov_len >> BDRV_SECTOR_BITS;
                     }
                 }
#7 lore raw

Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben:

Quoted 48 lines · Kevin Wolf
Quoted 32 lines

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

Quoted 7 lines

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

Kevin,

Yes, looking at that fix it makes sense - we are wanting to pad the back part of the block after the actual data with zeros. That back length should be (block size - (bytes avail + block offset)), which is iov2.iov_len.

Quoted 4 lines

There are two reasons I think we haven't seen this issue (it has been hidden):

1.) If bs->file supports zero init, we don't do any of this

I see. file does and blkdebug doesn't, so that's the crucial difference.

Quoted 3 lines

2.) This is done for the case when the existing BAT state is PAYLOAD_BLOCK_ZERO. Until recently (commit 30af51c), we didn't create VHDX files with blocks in the PAYLOAD_BLOCK_ZERO state.

Right, I wasn't aware of this either any more.

Quoted 2 lines

So it has been a latent bug in a hitherto rarely (if ever) exercised path.

Thanks for your explanation, it's clear to me now what's going on. I'll send out the patches (for both blkdebug and vhdx) right away. You can either pick up the vhdx one, or just give your Acked-by and then I'll merge it through my block tree.

Kevin

#8 lore raw

Am 15.04.2015 um 11:26 schrieb Kevin Wolf:

Quoted 62 lines

Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben:

Quoted 48 lines · Kevin Wolf
Quoted 32 lines

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

Quoted 7 lines

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

Kevin,

Yes, looking at that fix it makes sense - we are wanting to pad the back part of the block after the actual data with zeros. That back length should be (block size - (bytes avail + block offset)), which is iov2.iov_len.

Quoted 4 lines

There are two reasons I think we haven't seen this issue (it has been hidden):

1.) If bs->file supports zero init, we don't do any of this

I see. file does and blkdebug doesn't, so that's the crucial difference.

Quoted 3 lines

2.) This is done for the case when the existing BAT state is PAYLOAD_BLOCK_ZERO. Until recently (commit 30af51c), we didn't create VHDX files with blocks in the PAYLOAD_BLOCK_ZERO state.

Right, I wasn't aware of this either any more.

Quoted 7 lines
Quoted 2 lines

So it has been a latent bug in a hitherto rarely (if ever) exercised path.

Thanks for your explanation, it's clear to me now what's going on. I'll send out the patches (for both blkdebug and vhdx) right away. You can either pick up the vhdx one, or just give your Acked-by and then I'll merge it through my block tree.

Might 059 (?) failure for -vmdk be another symptom of the same issue?

Thanks,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
#9 lore raw

Am 15.04.2015 um 11:34 hat Andreas Färber geschrieben:

Quoted 66 lines

Am 15.04.2015 um 11:26 schrieb Kevin Wolf:

Quoted 65 lines

Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben:

Quoted 48 lines · Kevin Wolf
Quoted 32 lines

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

Quoted 7 lines

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

Kevin,

Yes, looking at that fix it makes sense - we are wanting to pad the back part of the block after the actual data with zeros. That back length should be (block size - (bytes avail + block offset)), which is iov2.iov_len.

Quoted 4 lines

There are two reasons I think we haven't seen this issue (it has been hidden):

1.) If bs->file supports zero init, we don't do any of this

I see. file does and blkdebug doesn't, so that's the crucial difference.

Quoted 3 lines

2.) This is done for the case when the existing BAT state is PAYLOAD_BLOCK_ZERO. Until recently (commit 30af51c), we didn't create VHDX files with blocks in the PAYLOAD_BLOCK_ZERO state.

Right, I wasn't aware of this either any more.

Quoted 2 lines

So it has been a latent bug in a hitherto rarely (if ever) exercised path.

Quoted 6 lines
Quoted 4 lines

Thanks for your explanation, it's clear to me now what's going on. I'll send out the patches (for both blkdebug and vhdx) right away. You can either pick up the vhdx one, or just give your Acked-by and then I'll merge it through my block tree.

Might 059 (?) failure for -vmdk be another symptom of the same issue?

059 passes for me with vmdk. If it fails for you, can you please paste the output diff?

Kevin

#10 lore raw

Am 15.04.2015 um 11:47 schrieb Kevin Wolf:

Quoted 72 lines

Am 15.04.2015 um 11:34 hat Andreas Färber geschrieben:

Quoted 71 lines

Am 15.04.2015 um 11:26 schrieb Kevin Wolf:

Quoted 69 lines

Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben:

Quoted 48 lines · Kevin Wolf
Quoted 32 lines

Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben:

Quoted 12 lines

Hi,

001 seems to hang for -qcow (or is not reasonably "quick": >5 min).

033 is failing for -vhdx.

(Note that make check-block only tests -qcow2, so didn't uncover either of them.)

Given a failing test, am I seeing correctly that there is no command line option to skip this one failing test? -x seems to be for groups only.

Quoted 6 lines

Regards,
Andreas

$ ./check -v -T -qcow -g quick
[...]
001 6s ...        [05:12:39]

qcow1 is just really slow. 001 passes for me, after 202 seconds (that's on my SSD, YMMV).

Quoted 3 lines
$ ./check -v -T -vhdx -g quick
[...]
033 1s ...        [04:06:09] [04:06:11] - output mismatch (see 033.out.bad)

This seems to be because blkdebug doesn't implement .bdrv_truncate. Currently the test case isn't suitable for VHDX, which uses explicit bdrv_truncate() calls to grow the image file. I'll send a patch for blkdebug to allow this.

Quoted 7 lines

However, it seems that there is another problem which causes assertion failures when using VHDX over blkdebug. Jeff, does the following fix make sense to you? (I think it does, but I don't understand yet why the assertion failure is only triggered with blkdebug - or in other words:
"how could this ever work?")

Kevin

Kevin,

Yes, looking at that fix it makes sense - we are wanting to pad the back part of the block after the actual data with zeros. That back length should be (block size - (bytes avail + block offset)), which is iov2.iov_len.

Quoted 4 lines

There are two reasons I think we haven't seen this issue (it has been hidden):

1.) If bs->file supports zero init, we don't do any of this

I see. file does and blkdebug doesn't, so that's the crucial difference.

Quoted 3 lines

2.) This is done for the case when the existing BAT state is PAYLOAD_BLOCK_ZERO. Until recently (commit 30af51c), we didn't create VHDX files with blocks in the PAYLOAD_BLOCK_ZERO state.

Right, I wasn't aware of this either any more.

Quoted 2 lines

So it has been a latent bug in a hitherto rarely (if ever) exercised path.

Thanks for your explanation, it's clear to me now what's going on. I'll send out the patches (for both blkdebug and vhdx) right away. You can either pick up the vhdx one, or just give your Acked-by and then I'll merge it through my block tree.

Quoted 4 lines
Quoted 1 line

Might 059 (?) failure for -vmdk be another symptom of the same issue?

059 passes for me with vmdk. If it fails for you, can you please paste the output diff?

With v2.3.0-rc3:

-raw:

[ 1714s] 005 [02:45:31] [02:45:31] - output mismatch (see
005.out.bad)
[ 1714s] --- /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/005.out

2015-04-13 18:34:01.000000000 +0000

[ 1714s] +++ 005.out.bad 2015-04-15 02:45:31.540000000 +0000
[ 1714s] @@ -1,13 +1,12 @@
[ 1714s] QA output created by 005
[ 1714s]
[ 1714s] creating large image
[ 1714s] +qemu-img: TEST_DIR/t.IMGFMT: The image size is too large for file format 'IMGFMT'
[ 1714s] Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000 [ 1714s]
[ 1714s] small read
[ 1714s] -read 4096/4096 bytes at offset 1024
[ 1714s] -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) [ 1714s] +read failed: Input/output error
[ 1714s]
[ 1714s] small write
[ 1714s] -wrote 4096/4096 bytes at offset 8192
[ 1714s] -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) [ 1714s] +write failed: Input/output error
[ 1714s] *** done

-qcow2:

[ 1867s] 028 [02:47:55] [02:48:04] - output mismatch (see
028.out.bad)
[ 1867s] --- /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/028.out

2015-04-13 18:34:01.000000000 +0000

[ 1867s] +++ 028.out.bad 2015-04-15 02:48:04.908000000 +0000
[ 1867s] @@ -473,6 +473,14 @@
[ 1867s] (qemu)
iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1867s] Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1867s]
iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1867s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1867s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1867s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1867s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1867s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1867s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1867s] +Type backup, device disk: Completed 131072 of 4294968832
bytes, speed limit 0 bytes/s
[ 1867s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs

[ 1867s]  No active jobs
[ 1867s]  === IO: pattern 195
[ 1867s]  read 512/512 bytes at offset 3221194240

-qed:

[ 1946s] 028 [02:49:13] [02:49:23] - output mismatch (see
028.out.bad)
[ 1946s] --- /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/028.out

2015-04-13 18:34:01.000000000 +0000

[ 1946s] +++ 028.out.bad 2015-04-15 02:49:23.444000000 +0000
[ 1946s] @@ -473,6 +473,14 @@
[ 1946s] (qemu)
iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1946s] Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1946s]
iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1946s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1946s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1946s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1946s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1946s] +Type backup, device disk: Completed 0 of 4294968832 bytes,
speed limit 0 bytes/s
[ 1946s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs
[ 1946s] +Type backup, device disk: Completed 131072 of 4294968832
bytes, speed limit 0 bytes/s
[ 1946s]
+iininfinfoinfo
info binfo
blinfo
bloinfo blocinfo blockinfo block-info
block-jinfo block-joinfo block-jobinfo block-jobs

[ 1946s]  No active jobs
[ 1946s]  === IO: pattern 195
[ 1946s]  read 512/512 bytes at offset 3221194240

-vmdk:

[ 2125s] 059 [02:52:18] [02:52:22] - output mismatch (see
059.out.bad)
[ 2125s] --- /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/059.out

2015-04-13 18:34:01.000000000 +0000

[ 2125s] +++ 059.out.bad 2015-04-15 02:52:22.364000000 +0000
[ 2125s] @@ -2264,76 +2264,14 @@
[ 2125s] 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
[ 2125s]
[ 2125s] === Testing 4TB monolithicFlat creation and IO ===
[ 2125s] +qemu-img: TEST_DIR/iotest-version3.IMGFMT: Could not truncate
file: File too large
[ 2125s] Formatting 'TEST_DIR/iotest-version3.IMGFMT', fmt=IMGFMT size=4398046511104
[ 2125s] image: TEST_DIR/iotest-version3.IMGFMT
[ 2125s] file format: IMGFMT
[ 2125s] -virtual size: 4.0T (4398046511104 bytes)
[ 2125s] -wrote 512/512 bytes at offset 966367641600
[ 2125s] -512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
[ 2125s] -e100000000: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000010: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000020: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000030: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000040: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000050: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000060: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000070: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000080: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000090: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000a0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000b0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000c0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000d0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000e0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000000f0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000100: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000110: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000120: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000130: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000140: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000150: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000160: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000170: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000180: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000190: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001a0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001b0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001c0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001d0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001e0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e1000001f0: 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a
................
[ 2125s] -e100000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000002f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e100000390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -e1000003f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
[ 2125s] -read 1024/1024 bytes at offset 966367641600
[ 2125s] -1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
[ 2125s] +virtual size: 16G (17179869184 bytes)
[ 2125s] +cluster_size: 65536
[ 2125s] +qemu-io: can't open device /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/scratch/iotest-version3.vmdk:
VMDK version 3 must be read only
[ 2125s] +no file open, try 'help open'
[ 2125s] +qemu-io: can't open device /home/abuild/rpmbuild/BUILD/qemu-2.3.0-rc3/tests/qemu-iotests/scratch/iotest-version3.vmdk:
VMDK version 3 must be read only
[ 2125s] +no file open, try 'help open'
[ 2125s] *** done

https://build.opensuse.org/build/Virtualization/openSUSE_Factory/x86_64/qemu-testsuite/_log

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)
Acked-by
#11 lore raw
In reply to Kevin Wolf

On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote:

[snip]

block/vhdx.c static coroutine_fn int vhdx_co_writev(BlockDriverState *bs, int64_t sector_num, · line 1291

Quoted 11 lines
block/vhdx.c +1 -1
@@ -1285,7 +1285,7 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState *bs, int64_t sector_num,
                         iov2.iov_base = qemu_blockalign(bs, iov2.iov_len);
                         memset(iov2.iov_base, 0, iov2.iov_len);
                         qemu_iovec_concat_iov(&hd_qiov, &iov2, 1, 0,
-                                              sinfo.block_offset);
+                                              iov2.iov_len);
                         sectors_to_write += iov2.iov_len >> BDRV_SECTOR_BITS;
                     }
                 }