- 22 6月, 2016 17 次提交
-
-
由 John Ferlan 提交于
Rather than inline code secret lookup for rbd/iscsi, use the common function. Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
-
由 John Ferlan 提交于
Create a helper virStorageBackendCreateQemuImgSetOptions to set either the qemu-img -o options or the previous mechanism using -F Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
-
由 John Ferlan 提交于
Create a helper virStorageBackendCreateQemuImgSetBacking to perform the backing store set Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
-
由 John Ferlan 提交于
Since we support QEMU 0.12 and later, checking for support of specific flags added prior to that isn't necessary. Thus start with the base of having the "-o options" available for the qemu-img create option and then determine whether we have the compat option for qcow2 files (which would be necessary up through qemu 2.0 where the default changes to compat 0.11). Adjust test to no long check for NONE and FLAG options as well was removing results of tests that would use that option. Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
-
由 Ján Tomko 提交于
So far this is only useful for recalculating NUMA memory size, which this function cannot parse. This will let us generate USB addresses based on this flag.
-
由 Ján Tomko 提交于
The default USB controller only has two ports.
-
由 Ján Tomko 提交于
This script can already operate on a list of files. Add a --check parameter to check if multiple files are wrapped correctly with a single invocation of the script.
-
由 Ján Tomko 提交于
If --in-place is supplied as the first argument to the script, replace the file in-place instead of printing to stdout.
-
由 Ján Tomko 提交于
This will be useful to check if the file is wrapped already.
-
由 Ján Tomko 提交于
Leave the printing up to &rewrap.
-
由 Ján Tomko 提交于
We have a list of parameters in @args, that need to be rewrapped and separated by a space and escaped newline: " \\\n", with the exception of the last one, which only needs a newline. Instead of a for cycle, rewrap the individual arguments using map, and interleave them with escaped newlines by using join.
-
由 Ján Tomko 提交于
Do not print anything, let the caller take care of it.
-
由 Ján Tomko 提交于
Split out the code wrapping the single argument.
-
由 Ján Tomko 提交于
Shorten the rewrap subroutine by splitting out the code dealing with a single line. Also remove $file from the warning.
-
由 Ján Tomko 提交于
We already have a syntax-check to prohibit direct use of these allocation functions.
-
由 Ján Tomko 提交于
There is a definiton of VIR_FROM_THIS just two lines above. The rest is defined in vbox_common.h.
-
- 21 6月, 2016 9 次提交
-
-
由 Laine Stump 提交于
In the case of chassisNr (used to set chassis_nr of a pci-bridge controller), 0 is reserved for / used by the pci[e]-root bus. In the base of busNr, a value of 0 would mean that the root bus had no places available to plug in new buses, including the pxb itself (the documentation I wrote for pxb even noted the limit of busNr as 1.254). NB: oddly, the "chassis" attribute, which is used for pcie-root-port and pcie-switch-downstream-port *can* be set to 0, since it's the combination of {chassis, slot} that needs to be unique, not chassis by itself (and slot 0 of pcie-root is reserved, while pcie-*-port can use *only* slot 0). This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1342962
-
由 Andrea Bolognani 提交于
-
由 Jiri Denemark 提交于
Thanks to our smart option parser which automatically assigns positional parameters the following (previously working) command fails: virsh migrate test qemu+ssh://1.2.3.4/system tcp://1.2.3.4/ error: invalid argument: Unsupported compression method 'tcp://1.2.3.4/' We need to make sure new options are added at the end of the list rather than where they logically belong. Reported by Brian Rak. Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
-
由 Ján Tomko 提交于
-
由 Ján Tomko 提交于
This test only checks if mocking of virRandomBytes works correctly. Drop it to avoid infinite recursion by testing the test suite.
-
由 Ján Tomko 提交于
This tests checks that the first word after SYNOPSIS in virsh help ${command} output is ${command}. This was only good to check that the command option structures are valid, which is now served by 'virsh self-test'.
-
由 Ján Tomko 提交于
A new hidden command for virsh that will iterate over all command groups and commands and print help for every single one. This involves running vshCmddefOptParse so we can get an error if one of the command's option structure is invalid.
-
由 Ján Tomko 提交于
This function generates some big random numbers. Cache the result and supply it to any subsequent generate2 calls.
-
- 20 6月, 2016 14 次提交
-
-
由 Peter Krempa 提交于
Since introduction of the DAC security driver we've documented that seclabels with a leading + can be used with numerical uid. This would not work though with the rest of libvirt if the uid was not actually used in the system as we'd fail when trying to get a list of supplementary groups for the given uid. Since a uid without entry in /etc/passwd (or other user database) will not have any supplementary groups we can treat the failure to obtain them as such. This patch modifies virGetGroupList to not report the error for missing users and makes it return an empty list or just the group specified in @gid. All callers will grant less permissions to a user in case of failure of this function and thus this change is safe.
-
由 Peter Krempa 提交于
In some cases it will be necessary to ignore errors reported from this function. This allows suppressing them to avoid spamming logs.
-
由 Peter Krempa 提交于
Whine about 'allowed_users' having wrong format rather than 'shell'
-
由 Peter Krempa 提交于
The list certainly isn't zero terminated and it would disallow usage of group 'root'. Pass in the array size and match against it.
-
由 Peter Krempa 提交于
Use 'cleanup' since it's also used on success.
-
由 Peter Krempa 提交于
When loading status XMLs with following graphics definition: <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1' fromConfig='1'/> <image compression='off'/> </graphics> libvirtd would leak a few bytes: 10 bytes in 1 blocks are definitely lost in loss record 71 of 1,127 at 0x4C2C000: malloc (vg_replace_malloc.c:299) by 0x6789298: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4) by 0x552AB0A: virXMLPropString (virxml.c:479) by 0x5539536: virDomainGraphicsListensParseXML (domain_conf.c:11171) by 0x553DD5E: virDomainGraphicsDefParseXMLSpice (domain_conf.c:11414) by 0x553DD5E: virDomainGraphicsDefParseXML (domain_conf.c:11749) by 0x5566061: virDomainDefParseXML (domain_conf.c:16939) by 0x556953F: virDomainObjParseXML (domain_conf.c:17348) by 0x556953F: virDomainObjParseNode (domain_conf.c:17513) by 0x5569902: virDomainObjParseFile (domain_conf.c:17532) by 0x5571E02: virDomainObjListLoadStatus (virdomainobjlist.c:514) by 0x5571E02: virDomainObjListLoadAllConfigs (virdomainobjlist.c:596) by 0x26E0BDC8: qemuStateInitialize (qemu_driver.c:911) by 0x55B1FDB: virStateInitialize (libvirt.c:770) by 0x122039: daemonRunStateInit (libvirtd.c:960)
-
由 Chen Hanxiao 提交于
s/succcess/success Signed-off-by: NChen Hanxiao <chenhanxiao@gmail.com>
-
由 Jaroslav Suchanek 提交于
Crash dump in a old kvmdump format is being obsolete and cannot be loaded and processed by crash utility since its version 6.1.0. A --memory-only option is required in order to produce valid ELF file which can be later processed by the crash utility. A new note is added to the dump command description.
-
由 Ján Tomko 提交于
Use virBitmapParseUnlimited to parse the env variable.
-
由 Ján Tomko 提交于
For parsing a bitmap of an unknown size.
-
由 Ján Tomko 提交于
Most the callers pass 0 in one form or another, including vircapstest which used VIR_ARCH_NONE.
-
由 Ján Tomko 提交于
This will be used for the caller that needs to specify a separator. Currently identical to virBitmapParse. Also change one test case to use the new function.
-
由 Ján Tomko 提交于
This is only used by one caller.
-
由 Andrea Bolognani 提交于
The '-usb' option doesn't have any effect for aarch64 mach-virt guests, so the fact that it's currently enabled by default is not really causing any issue. However, that might change in the future (although unlikely), and having it as part of the QEMU command line can cause confusion to someone looking through the process list. Avoid it completely, like it's already happening for q35.
-