Re: [libvirt] [PATCH v2] storage: Check stderr when matching parted output

2014-12-10 Thread Martin Kletzander
On Wed, Dec 10, 2014 at 03:14:26PM +0800, Hao Liu wrote: 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 s

[libvirt] [PATCH v2] storage: Check stderr when matching parted output

2014-12-09 Thread Hao Liu
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 mess