[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] e99bce: qga: Add guest-fsfreeze-freeze-list c
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] e99bce: qga: Add guest-fsfreeze-freeze-list command |
Date: |
Fri, 08 Aug 2014 07:30:03 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: e99bce2021d2fd41a4d02f5e7e83734b03ff2b6f
https://github.com/qemu/qemu/commit/e99bce2021d2fd41a4d02f5e7e83734b03ff2b6f
Author: Tomoki Sekiyama <address@hidden>
Date: 2014-08-07 (Thu, 07 Aug 2014)
Changed paths:
M qga/commands-posix.c
M qga/commands-win32.c
M qga/qapi-schema.json
Log Message:
-----------
qga: Add guest-fsfreeze-freeze-list command
If an array of mount point paths is specified as 'mountpoints' argument
of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems
mounted on specified paths in Linux guests. Otherwise, it works as the
same way as guest-fsfreeze-freeze.
This would be useful when the host wants to create partial disk snapshots.
Signed-off-by: Tomoki Sekiyama <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
*updated schema to report 2.2 as initial supported version
Signed-off-by: Michael Roth <address@hidden>
Commit: 46d4c5723e438be0fa564b8adeefed8f40f4a6ca
https://github.com/qemu/qemu/commit/46d4c5723e438be0fa564b8adeefed8f40f4a6ca
Author: Tomoki Sekiyama <address@hidden>
Date: 2014-08-07 (Thu, 07 Aug 2014)
Changed paths:
M qga/commands-posix.c
M qga/commands-win32.c
M qga/qapi-schema.json
Log Message:
-----------
qga: Add guest-get-fsinfo command
Add command to get mounted filesystems information in the guest.
The returned value contains a list of mountpoint paths and
corresponding disks info such as disk bus type, drive address,
and the disk controllers' PCI addresses, so that management layer
such as libvirt can resolve the disk backends.
For example, when `lsblk' result is:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1G 0 disk
`-sdb1 8:17 0 1024M 0 part
`-vg0-lv0 253:1 0 1.4G 0 lvm /mnt/test
sdc 8:32 0 1G 0 disk
`-sdc1 8:33 0 512M 0 part
`-vg0-lv0 253:1 0 1.4G 0 lvm /mnt/test
vda 252:0 0 25G 0 disk
`-vda1 252:1 0 25G 0 part /
where sdb is a SCSI disk with PCI controller 0000:00:0a.0 and ID=1,
sdc is an IDE disk with PCI controller 0000:00:01.1, and
vda is a virtio-blk disk with PCI device 0000:00:06.0,
guest-get-fsinfo command will return the following result:
{"return":
[{"name":"dm-1",
"mountpoint":"/mnt/test",
"disk":[
{"bus-type":"scsi","bus":0,"unit":1,"target":0,
"pci-controller":{"bus":0,"slot":10,"domain":0,"function":0}},
{"bus-type":"ide","bus":0,"unit":0,"target":0,
"pci-controller":{"bus":0,"slot":1,"domain":0,"function":1}}],
"type":"xfs"},
{"name":"vda1", "mountpoint":"/",
"disk":[
{"bus-type":"virtio","bus":0,"unit":0,"target":0,
"pci-controller":{"bus":0,"slot":6,"domain":0,"function":0}}],
"type":"ext4"}]}
In Linux guest, the disk information is resolved from sysfs. So far,
it only supports virtio-blk, virtio-scsi, IDE, SATA, SCSI disks on x86
hosts, and "disk" parameter may be empty for unsupported disk types.
Signed-off-by: Tomoki Sekiyama <address@hidden>
*updated schema to report 2.2 as initial supported version
Signed-off-by: Michael Roth <address@hidden>
Commit: 1281c08a46df94a66acca140bafc1785c0fcd47f
https://github.com/qemu/qemu/commit/1281c08a46df94a66acca140bafc1785c0fcd47f
Author: Tomoki Sekiyama <address@hidden>
Date: 2014-08-07 (Thu, 07 Aug 2014)
Changed paths:
M qga/commands-posix.c
M qga/commands-win32.c
M qga/guest-agent-core.h
M qga/main.c
Log Message:
-----------
qga: Disable unsupported commands by default
Currently management softwares cannot know whether a qemu-ga command is
supported or not on the running platform until they actually execute it.
This patch disables unsupported commands at launch time of qemu-ga, so that
management softwares can check whether they are supported from 'enabled'
property of the result from 'guest-info' command.
Signed-off-by: Tomoki Sekiyama <address@hidden>
Signed-off-by: Michael Roth <address@hidden>
Commit: 2d591ce2aeebf9620ff527c7946844a3122afeec
https://github.com/qemu/qemu/commit/2d591ce2aeebf9620ff527c7946844a3122afeec
Author: Peter Maydell <address@hidden>
Date: 2014-08-08 (Fri, 08 Aug 2014)
Changed paths:
M qga/commands-posix.c
M qga/commands-win32.c
M qga/guest-agent-core.h
M qga/main.c
M qga/qapi-schema.json
Log Message:
-----------
Merge remote-tracking branch 'remotes/mdroth/qga-pull-2014-08-08' into staging
* remotes/mdroth/qga-pull-2014-08-08:
qga: Disable unsupported commands by default
qga: Add guest-get-fsinfo command
qga: Add guest-fsfreeze-freeze-list command
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/2ee55b835191...2d591ce2aeeb
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] e99bce: qga: Add guest-fsfreeze-freeze-list command,
GitHub <=