OSDN Git Service

qga: unset frozen state if no mount points are frozen
authorChen Hanxiao <chenhanxiao@gmail.com>
Thu, 14 Jun 2018 08:10:13 +0000 (16:10 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 3 Jul 2018 15:55:18 +0000 (10:55 -0500)
commit65650f0182c11a000d488a3b8e8e6ad071853f31
tree45ba32ba8d38794215a866619a9cf99c57bb8a4e
parentb07cd3e748b3f27a17c27afeee578dc4eedb8dd5
qga: unset frozen state if no mount points are frozen

If we set mountpoints to qmp_guest_fsfreeze_freeze_list,
we may got nothing to freeze as all mountpoints are
not valid.
So call ga_unset_frozen in this senario.

Also, if we return 0 frozen fs, there is no need to call
guest-fsfreeze-thaw.

Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
qga/qapi-schema.json