]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Check stderr when matching parted output
authorHao Liu <hliu@redhat.com>
Wed, 10 Dec 2014 07:14:26 +0000 (15:14 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Dec 2014 09:55:23 +0000 (10:55 +0100)
commit97880078922049b08ae28af2579cca9610e642dc
treea075d2c4f0803473b5f6fda67ad9823ae5f1a2f8
parent57023c0a3af4af1c547189c1f6712ed5edeb0c0b
storage: Check stderr when matching parted output

In old version of parted like parted-2.1-25, error message is shown in
stdout when printing a disk info without disk label.

    Error: /dev/sda: unrecognised disk label

This line has been moved to stderr in newer version of parted. So we
should check both stdout and stderr when locating this message.

This should fix bug:
    https://bugzilla.redhat.com/show_bug.cgi?id=1172468

Signed-off-by: Hao Liu <hliu@redhat.com>
src/storage/storage_backend_disk.c