qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] Is the use of bdrv_getlength() in quorum_co_flush() kosher?


From: Markus Armbruster
Subject: [Qemu-block] Is the use of bdrv_getlength() in quorum_co_flush() kosher?
Date: Fri, 04 Aug 2017 14:48:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Have a look at quorum_co_flush():

            quorum_report_bad(QUORUM_OP_TYPE_FLUSH, 0,
                              bdrv_getlength(s->children[i]->bs),
                              s->children[i]->bs->node_name, result);

bdrv_getlength() can fail.  Does it do the right thing then?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]