ruby-libvirt 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +1 -1
- data/NEWS +11 -0
- data/Rakefile +1 -1
- data/ext/libvirt/_libvirt.c +7 -7
- data/ext/libvirt/common.c +1 -1
- data/ext/libvirt/connect.c +121 -103
- data/ext/libvirt/domain.c +214 -133
- data/ext/libvirt/extconf.h +12 -0
- data/ext/libvirt/extconf.rb +13 -0
- data/ext/libvirt/interface.c +9 -9
- data/ext/libvirt/network.c +29 -21
- data/ext/libvirt/nodedevice.c +12 -12
- data/ext/libvirt/nwfilter.c +6 -6
- data/ext/libvirt/secret.c +10 -10
- data/ext/libvirt/storage.c +62 -37
- data/ext/libvirt/stream.c +12 -12
- metadata +3 -3
data/ext/libvirt/domain.c
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* domain.c: virDomain methods
|
3
3
|
*
|
4
4
|
* Copyright (C) 2007,2010 Red Hat Inc.
|
5
|
-
* Copyright (C) 2013
|
5
|
+
* Copyright (C) 2013-2016 Chris Lalancette <clalancette@gmail.com>
|
6
6
|
*
|
7
7
|
* This library is free software; you can redistribute it and/or
|
8
8
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -129,7 +129,7 @@ static void domain_input_to_fixnum_and_flags(VALUE in, VALUE *hash, VALUE *flags
|
|
129
129
|
* call-seq:
|
130
130
|
* dom.migrate(dconn, flags=0, dname=nil, uri=nil, bandwidth=0) -> Libvirt::Domain
|
131
131
|
*
|
132
|
-
* Call virDomainMigrate[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrate]
|
132
|
+
* Call virDomainMigrate[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate]
|
133
133
|
* to migrate a domain from the host on this connection to the connection
|
134
134
|
* referenced in dconn.
|
135
135
|
*/
|
@@ -159,7 +159,7 @@ static VALUE libvirt_domain_migrate(int argc, VALUE *argv, VALUE d)
|
|
159
159
|
* call-seq:
|
160
160
|
* dom.migrate_to_uri(duri, flags=0, dname=nil, bandwidth=0) -> nil
|
161
161
|
*
|
162
|
-
* Call virDomainMigrateToURI[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateToURI]
|
162
|
+
* Call virDomainMigrateToURI[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI]
|
163
163
|
* to migrate a domain from the host on this connection to the host whose
|
164
164
|
* libvirt URI is duri.
|
165
165
|
*/
|
@@ -183,7 +183,7 @@ static VALUE libvirt_domain_migrate_to_uri(int argc, VALUE *argv, VALUE d)
|
|
183
183
|
* call-seq:
|
184
184
|
* dom.migrate_set_max_downtime(downtime, flags=0) -> nil
|
185
185
|
*
|
186
|
-
* Call virDomainMigrateSetMaxDowntime[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateSetMaxDowntime]
|
186
|
+
* Call virDomainMigrateSetMaxDowntime[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxDowntime]
|
187
187
|
* to set the maximum downtime desired for live migration. Deprecated; use
|
188
188
|
* dom.migrate_max_downtime= instead.
|
189
189
|
*/
|
@@ -205,7 +205,7 @@ static VALUE libvirt_domain_migrate_set_max_downtime(int argc, VALUE *argv,
|
|
205
205
|
* call-seq:
|
206
206
|
* dom.migrate_max_downtime = downtime,flags=0
|
207
207
|
*
|
208
|
-
* Call virDomainMigrateSetMaxDowntime[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateSetMaxDowntime]
|
208
|
+
* Call virDomainMigrateSetMaxDowntime[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxDowntime]
|
209
209
|
* to set the maximum downtime desired for live migration.
|
210
210
|
*/
|
211
211
|
static VALUE libvirt_domain_migrate_max_downtime_equal(VALUE d, VALUE in)
|
@@ -227,7 +227,7 @@ static VALUE libvirt_domain_migrate_max_downtime_equal(VALUE d, VALUE in)
|
|
227
227
|
* call-seq:
|
228
228
|
* dom.migrate2(dconn, dxml=nil, flags=0, dname=nil, uri=nil, bandwidth=0) -> Libvirt::Domain
|
229
229
|
*
|
230
|
-
* Call virDomainMigrate2[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrate2]
|
230
|
+
* Call virDomainMigrate2[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate2]
|
231
231
|
* to migrate a domain from the host on this connection to the connection
|
232
232
|
* referenced in dconn.
|
233
233
|
*/
|
@@ -257,7 +257,7 @@ static VALUE libvirt_domain_migrate2(int argc, VALUE *argv, VALUE d)
|
|
257
257
|
* call-seq:
|
258
258
|
* dom.migrate_to_uri2(duri=nil, migrate_uri=nil, dxml=nil, flags=0, dname=nil, bandwidth=0) -> nil
|
259
259
|
*
|
260
|
-
* Call virDomainMigrateToURI2[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateToURI2]
|
260
|
+
* Call virDomainMigrateToURI2[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI2]
|
261
261
|
* to migrate a domain from the host on this connection to the host whose
|
262
262
|
* libvirt URI is duri.
|
263
263
|
*/
|
@@ -283,7 +283,7 @@ static VALUE libvirt_domain_migrate_to_uri2(int argc, VALUE *argv, VALUE d)
|
|
283
283
|
* call-seq:
|
284
284
|
* dom.migrate_set_max_speed(bandwidth, flags=0) -> nil
|
285
285
|
*
|
286
|
-
* Call virDomainMigrateSetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateSetMaxSpeed]
|
286
|
+
* Call virDomainMigrateSetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxSpeed]
|
287
287
|
* to set the maximum bandwidth allowed for live migration. Deprecated; use
|
288
288
|
* dom.migrate_max_speed= instead.
|
289
289
|
*/
|
@@ -305,7 +305,7 @@ static VALUE libvirt_domain_migrate_set_max_speed(int argc, VALUE *argv,
|
|
305
305
|
* call-seq:
|
306
306
|
* dom.migrate_max_speed = bandwidth,flags=0
|
307
307
|
*
|
308
|
-
* Call virDomainMigrateSetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateSetMaxSpeed]
|
308
|
+
* Call virDomainMigrateSetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxSpeed]
|
309
309
|
* to set the maximum bandwidth allowed for live migration.
|
310
310
|
*/
|
311
311
|
static VALUE libvirt_domain_migrate_max_speed_equal(VALUE d, VALUE in)
|
@@ -326,7 +326,7 @@ static VALUE libvirt_domain_migrate_max_speed_equal(VALUE d, VALUE in)
|
|
326
326
|
* call-seq:
|
327
327
|
* dom.shutdown(flags=0) -> nil
|
328
328
|
*
|
329
|
-
* Call virDomainShutdown[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainShutdown]
|
329
|
+
* Call virDomainShutdown[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainShutdown]
|
330
330
|
* to do a soft shutdown of the domain. The mechanism for doing the shutdown
|
331
331
|
* is hypervisor specific, and may require software running inside the domain
|
332
332
|
* to succeed.
|
@@ -357,7 +357,7 @@ static VALUE libvirt_domain_shutdown(int argc, VALUE *argv, VALUE d)
|
|
357
357
|
* call-seq:
|
358
358
|
* dom.reboot(flags=0) -> nil
|
359
359
|
*
|
360
|
-
* Call virDomainReboot[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainReboot]
|
360
|
+
* Call virDomainReboot[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainReboot]
|
361
361
|
* to do a reboot of the domain.
|
362
362
|
*/
|
363
363
|
static VALUE libvirt_domain_reboot(int argc, VALUE *argv, VALUE d)
|
@@ -375,7 +375,7 @@ static VALUE libvirt_domain_reboot(int argc, VALUE *argv, VALUE d)
|
|
375
375
|
* call-seq:
|
376
376
|
* dom.destroy(flags=0) -> nil
|
377
377
|
*
|
378
|
-
* Call virDomainDestroy[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainDestroy]
|
378
|
+
* Call virDomainDestroy[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainDestroy]
|
379
379
|
* to do a hard power-off of the domain.
|
380
380
|
*/
|
381
381
|
static VALUE libvirt_domain_destroy(int argc, VALUE *argv, VALUE d)
|
@@ -403,7 +403,7 @@ static VALUE libvirt_domain_destroy(int argc, VALUE *argv, VALUE d)
|
|
403
403
|
* call-seq:
|
404
404
|
* dom.suspend -> nil
|
405
405
|
*
|
406
|
-
* Call virDomainSuspend[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSuspend]
|
406
|
+
* Call virDomainSuspend[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSuspend]
|
407
407
|
* to stop the domain from executing. The domain will still continue to
|
408
408
|
* consume memory, but will not take any CPU time.
|
409
409
|
*/
|
@@ -418,7 +418,7 @@ static VALUE libvirt_domain_suspend(VALUE d)
|
|
418
418
|
* call-seq:
|
419
419
|
* dom.resume -> nil
|
420
420
|
*
|
421
|
-
* Call virDomainResume[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainResume]
|
421
|
+
* Call virDomainResume[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainResume]
|
422
422
|
* to resume a suspended domain. After this call the domain will start
|
423
423
|
* consuming CPU resources again.
|
424
424
|
*/
|
@@ -432,7 +432,7 @@ static VALUE libvirt_domain_resume(VALUE d)
|
|
432
432
|
* call-seq:
|
433
433
|
* dom.save(filename, dxml=nil, flags=0) -> nil
|
434
434
|
*
|
435
|
-
* Call virDomainSave[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSave]
|
435
|
+
* Call virDomainSave[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSave]
|
436
436
|
* to save the domain state to filename. After this call, the domain will no
|
437
437
|
* longer be consuming any resources.
|
438
438
|
*/
|
@@ -467,7 +467,7 @@ static VALUE libvirt_domain_save(int argc, VALUE *argv, VALUE d)
|
|
467
467
|
* call-seq:
|
468
468
|
* dom.managed_save(flags=0) -> nil
|
469
469
|
*
|
470
|
-
* Call virDomainManagedSave[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainManagedSave]
|
470
|
+
* Call virDomainManagedSave[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSave]
|
471
471
|
* to do a managed save of the domain. The domain will be saved to a place
|
472
472
|
* of libvirt's choosing.
|
473
473
|
*/
|
@@ -487,7 +487,7 @@ static VALUE libvirt_domain_managed_save(int argc, VALUE *argv, VALUE d)
|
|
487
487
|
* call-seq:
|
488
488
|
* dom.has_managed_save?(flags=0) -> [True|False]
|
489
489
|
*
|
490
|
-
* Call virDomainHasManagedSaveImage[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainHasManagedSaveImage]
|
490
|
+
* Call virDomainHasManagedSaveImage[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainHasManagedSaveImage]
|
491
491
|
* to determine if a particular domain has a managed save image.
|
492
492
|
*/
|
493
493
|
static VALUE libvirt_domain_has_managed_save(int argc, VALUE *argv, VALUE d)
|
@@ -506,7 +506,7 @@ static VALUE libvirt_domain_has_managed_save(int argc, VALUE *argv, VALUE d)
|
|
506
506
|
* call-seq:
|
507
507
|
* dom.managed_save_remove(flags=0) -> nil
|
508
508
|
*
|
509
|
-
* Call virDomainManagedSaveRemove[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainManagedSaveRemove]
|
509
|
+
* Call virDomainManagedSaveRemove[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveRemove]
|
510
510
|
* to remove the managed save image for a domain.
|
511
511
|
*/
|
512
512
|
static VALUE libvirt_domain_managed_save_remove(int argc, VALUE *argv, VALUE d)
|
@@ -526,7 +526,7 @@ static VALUE libvirt_domain_managed_save_remove(int argc, VALUE *argv, VALUE d)
|
|
526
526
|
* call-seq:
|
527
527
|
* dom.core_dump(filename, flags=0) -> nil
|
528
528
|
*
|
529
|
-
* Call virDomainCoreDump[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCoreDump]
|
529
|
+
* Call virDomainCoreDump[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCoreDump]
|
530
530
|
* to do a full memory dump of the domain to filename.
|
531
531
|
*/
|
532
532
|
static VALUE libvirt_domain_core_dump(int argc, VALUE *argv, VALUE d)
|
@@ -546,7 +546,7 @@ static VALUE libvirt_domain_core_dump(int argc, VALUE *argv, VALUE d)
|
|
546
546
|
* call-seq:
|
547
547
|
* Libvirt::Domain::restore(conn, filename) -> nil
|
548
548
|
*
|
549
|
-
* Call virDomainRestore[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainRestore]
|
549
|
+
* Call virDomainRestore[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainRestore]
|
550
550
|
* to restore the domain from the filename.
|
551
551
|
*/
|
552
552
|
static VALUE libvirt_domain_s_restore(VALUE RUBY_LIBVIRT_UNUSED(klass), VALUE c,
|
@@ -562,7 +562,7 @@ static VALUE libvirt_domain_s_restore(VALUE RUBY_LIBVIRT_UNUSED(klass), VALUE c,
|
|
562
562
|
* call-seq:
|
563
563
|
* dom.info -> Libvirt::Domain::Info
|
564
564
|
*
|
565
|
-
* Call virDomainGetInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetInfo]
|
565
|
+
* Call virDomainGetInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetInfo]
|
566
566
|
* to retrieve domain information.
|
567
567
|
*/
|
568
568
|
static VALUE libvirt_domain_info(VALUE d)
|
@@ -590,7 +590,7 @@ static VALUE libvirt_domain_info(VALUE d)
|
|
590
590
|
* call-seq:
|
591
591
|
* dom.security_label -> Libvirt::Domain::SecurityLabel
|
592
592
|
*
|
593
|
-
* Call virDomainGetSecurityLabel[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetSecurityLabel]
|
593
|
+
* Call virDomainGetSecurityLabel[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSecurityLabel]
|
594
594
|
* to retrieve the security label applied to this domain.
|
595
595
|
*/
|
596
596
|
static VALUE libvirt_domain_security_label(VALUE d)
|
@@ -616,7 +616,7 @@ static VALUE libvirt_domain_security_label(VALUE d)
|
|
616
616
|
* call-seq:
|
617
617
|
* dom.block_stats(path) -> Libvirt::Domain::BlockStats
|
618
618
|
*
|
619
|
-
* Call virDomainBlockStats[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockStats]
|
619
|
+
* Call virDomainBlockStats[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockStats]
|
620
620
|
* to retrieve statistics about domain block device path.
|
621
621
|
*/
|
622
622
|
static VALUE libvirt_domain_block_stats(VALUE d, VALUE path)
|
@@ -645,7 +645,7 @@ static VALUE libvirt_domain_block_stats(VALUE d, VALUE path)
|
|
645
645
|
* call-seq:
|
646
646
|
* dom.memory_stats(flags=0) -> [ Libvirt::Domain::MemoryStats ]
|
647
647
|
*
|
648
|
-
* Call virDomainMemoryStats[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStats]
|
648
|
+
* Call virDomainMemoryStats[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMemoryStats]
|
649
649
|
* to retrieve statistics about the amount of memory consumed by a domain.
|
650
650
|
*/
|
651
651
|
static VALUE libvirt_domain_memory_stats(int argc, VALUE *argv, VALUE d)
|
@@ -689,7 +689,7 @@ static VALUE libvirt_domain_memory_stats(int argc, VALUE *argv, VALUE d)
|
|
689
689
|
* call-seq:
|
690
690
|
* dom.blockinfo(path, flags=0) -> Libvirt::Domain::BlockInfo
|
691
691
|
*
|
692
|
-
* Call virDomainGetBlockInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetBlockInfo]
|
692
|
+
* Call virDomainGetBlockInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockInfo]
|
693
693
|
* to retrieve information about the backing file path for the domain.
|
694
694
|
*/
|
695
695
|
static VALUE libvirt_domain_block_info(int argc, VALUE *argv, VALUE d)
|
@@ -720,7 +720,7 @@ static VALUE libvirt_domain_block_info(int argc, VALUE *argv, VALUE d)
|
|
720
720
|
* call-seq:
|
721
721
|
* dom.block_peek(path, offset, size, flags=0) -> String
|
722
722
|
*
|
723
|
-
* Call virDomainBlockPeek[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockPeek]
|
723
|
+
* Call virDomainBlockPeek[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockPeek]
|
724
724
|
* to read size number of bytes, starting at offset offset from domain backing
|
725
725
|
* file path. Due to limitations of the libvirt remote protocol, the user
|
726
726
|
* should never request more than 64k bytes.
|
@@ -750,7 +750,7 @@ static VALUE libvirt_domain_block_peek(int argc, VALUE *argv, VALUE d)
|
|
750
750
|
* call-seq:
|
751
751
|
* dom.memory_peek(start, size, flags=Libvirt::Domain::MEMORY_VIRTUAL) -> String
|
752
752
|
*
|
753
|
-
* Call virDomainMemoryPeek[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMemoryPeek]
|
753
|
+
* Call virDomainMemoryPeek[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMemoryPeek]
|
754
754
|
* to read size number of bytes from offset start from the domain memory.
|
755
755
|
* Due to limitations of the libvirt remote protocol, the user
|
756
756
|
* should never request more than 64k bytes.
|
@@ -781,7 +781,7 @@ static VALUE libvirt_domain_memory_peek(int argc, VALUE *argv, VALUE d)
|
|
781
781
|
/* call-seq:
|
782
782
|
* dom.vcpus -> [ Libvirt::Domain::VCPUInfo ]
|
783
783
|
*
|
784
|
-
* Call virDomainGetVcpus[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetVcpus]
|
784
|
+
* Call virDomainGetVcpus[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetVcpus]
|
785
785
|
* to retrieve detailed information about the state of a domain's virtual CPUs.
|
786
786
|
*/
|
787
787
|
static VALUE libvirt_domain_vcpus(VALUE d)
|
@@ -865,7 +865,7 @@ static VALUE libvirt_domain_vcpus(VALUE d)
|
|
865
865
|
* call-seq:
|
866
866
|
* dom.active? -> [true|false]
|
867
867
|
*
|
868
|
-
* Call virDomainIsActive[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainIsActive]
|
868
|
+
* Call virDomainIsActive[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsActive]
|
869
869
|
* to determine if this domain is currently active.
|
870
870
|
*/
|
871
871
|
static VALUE libvirt_domain_active_p(VALUE d)
|
@@ -881,7 +881,7 @@ static VALUE libvirt_domain_active_p(VALUE d)
|
|
881
881
|
* call-seq:
|
882
882
|
* dom.persistent? -> [true|false]
|
883
883
|
*
|
884
|
-
* Call virDomainIsPersistent[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainIsPersistent]
|
884
|
+
* Call virDomainIsPersistent[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsPersistent]
|
885
885
|
* to determine if this is a persistent domain.
|
886
886
|
*/
|
887
887
|
static VALUE libvirt_domain_persistent_p(VALUE d)
|
@@ -896,7 +896,7 @@ static VALUE libvirt_domain_persistent_p(VALUE d)
|
|
896
896
|
* call-seq:
|
897
897
|
* dom.ifinfo(if) -> Libvirt::Domain::IfInfo
|
898
898
|
*
|
899
|
-
* Call virDomainInterfaceStats[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainInterfaceStats]
|
899
|
+
* Call virDomainInterfaceStats[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainInterfaceStats]
|
900
900
|
* to retrieve statistics about domain interface if.
|
901
901
|
*/
|
902
902
|
static VALUE libvirt_domain_if_stats(VALUE d, VALUE sif)
|
@@ -930,7 +930,7 @@ static VALUE libvirt_domain_if_stats(VALUE d, VALUE sif)
|
|
930
930
|
* call-seq:
|
931
931
|
* dom.name -> String
|
932
932
|
*
|
933
|
-
* Call virDomainGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetName]
|
933
|
+
* Call virDomainGetName[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetName]
|
934
934
|
* to retrieve the name of this domain.
|
935
935
|
*/
|
936
936
|
static VALUE libvirt_domain_name(VALUE d)
|
@@ -944,7 +944,7 @@ static VALUE libvirt_domain_name(VALUE d)
|
|
944
944
|
* call-seq:
|
945
945
|
* dom.id -> Fixnum
|
946
946
|
*
|
947
|
-
* Call virDomainGetID[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetID]
|
947
|
+
* Call virDomainGetID[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetID]
|
948
948
|
* to retrieve the ID of this domain. If the domain isn't running, this will
|
949
949
|
* be -1.
|
950
950
|
*/
|
@@ -969,7 +969,7 @@ static VALUE libvirt_domain_id(VALUE d)
|
|
969
969
|
* call-seq:
|
970
970
|
* dom.uuid -> String
|
971
971
|
*
|
972
|
-
* Call virDomainGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetUUIDString]
|
972
|
+
* Call virDomainGetUUIDString[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetUUIDString]
|
973
973
|
* to retrieve the UUID of this domain.
|
974
974
|
*/
|
975
975
|
static VALUE libvirt_domain_uuid(VALUE d)
|
@@ -983,7 +983,7 @@ static VALUE libvirt_domain_uuid(VALUE d)
|
|
983
983
|
* call-seq:
|
984
984
|
* dom.os_type -> String
|
985
985
|
*
|
986
|
-
* Call virDomainGetOSType[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetOSType]
|
986
|
+
* Call virDomainGetOSType[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetOSType]
|
987
987
|
* to retrieve the os_type of this domain. In libvirt terms, os_type determines
|
988
988
|
* whether this domain is fully virtualized, paravirtualized, or a container.
|
989
989
|
*/
|
@@ -998,7 +998,7 @@ static VALUE libvirt_domain_os_type(VALUE d)
|
|
998
998
|
* call-seq:
|
999
999
|
* dom.max_memory -> Fixnum
|
1000
1000
|
*
|
1001
|
-
* Call virDomainGetMaxMemory[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetMaxMemory]
|
1001
|
+
* Call virDomainGetMaxMemory[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxMemory]
|
1002
1002
|
* to retrieve the maximum amount of memory this domain is allowed to access.
|
1003
1003
|
* Note that the current amount of memory this domain is allowed to access may
|
1004
1004
|
* be different (see dom.memory_set).
|
@@ -1019,7 +1019,7 @@ static VALUE libvirt_domain_max_memory(VALUE d)
|
|
1019
1019
|
* call-seq:
|
1020
1020
|
* dom.max_memory = Fixnum
|
1021
1021
|
*
|
1022
|
-
* Call virDomainSetMaxMemory[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetMaxMemory]
|
1022
|
+
* Call virDomainSetMaxMemory[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMaxMemory]
|
1023
1023
|
* to set the maximum amount of memory (in kilobytes) this domain should be
|
1024
1024
|
* allowed to access.
|
1025
1025
|
*/
|
@@ -1040,7 +1040,7 @@ static VALUE libvirt_domain_max_memory_equal(VALUE d, VALUE max_memory)
|
|
1040
1040
|
* call-seq:
|
1041
1041
|
* dom.memory = Fixnum,flags=0
|
1042
1042
|
*
|
1043
|
-
* Call virDomainSetMemory[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetMemory]
|
1043
|
+
* Call virDomainSetMemory[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemory]
|
1044
1044
|
* to set the amount of memory (in kilobytes) this domain should currently
|
1045
1045
|
* have. Note this will only succeed if both the hypervisor and the domain on
|
1046
1046
|
* this connection support ballooning.
|
@@ -1072,7 +1072,7 @@ static VALUE libvirt_domain_memory_equal(VALUE d, VALUE in)
|
|
1072
1072
|
* call-seq:
|
1073
1073
|
* dom.max_vcpus -> Fixnum
|
1074
1074
|
*
|
1075
|
-
* Call virDomainGetMaxVcpus[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetMaxVcpus]
|
1075
|
+
* Call virDomainGetMaxVcpus[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxVcpus]
|
1076
1076
|
* to retrieve the maximum number of virtual CPUs this domain can use.
|
1077
1077
|
*/
|
1078
1078
|
static VALUE libvirt_domain_max_vcpus(VALUE d)
|
@@ -1086,7 +1086,7 @@ static VALUE libvirt_domain_max_vcpus(VALUE d)
|
|
1086
1086
|
/* call-seq:
|
1087
1087
|
* dom.num_vcpus(flags) -> Fixnum
|
1088
1088
|
*
|
1089
|
-
* Call virDomainGetVcpusFlags[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetVcpusFlags]
|
1089
|
+
* Call virDomainGetVcpusFlags[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetVcpusFlags]
|
1090
1090
|
* to retrieve the number of virtual CPUs assigned to this domain.
|
1091
1091
|
*/
|
1092
1092
|
static VALUE libvirt_domain_num_vcpus(VALUE d, VALUE flags)
|
@@ -1102,7 +1102,7 @@ static VALUE libvirt_domain_num_vcpus(VALUE d, VALUE flags)
|
|
1102
1102
|
* call-seq:
|
1103
1103
|
* dom.vcpus = Fixnum,flags=0
|
1104
1104
|
*
|
1105
|
-
* Call virDomainSetVcpus[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetVcpus]
|
1105
|
+
* Call virDomainSetVcpus[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpus]
|
1106
1106
|
* to set the current number of virtual CPUs this domain should have. Note
|
1107
1107
|
* that this will only work if both the hypervisor and domain on this
|
1108
1108
|
* connection support virtual CPU hotplug/hot-unplug.
|
@@ -1152,7 +1152,7 @@ static VALUE libvirt_domain_vcpus_equal(VALUE d, VALUE in)
|
|
1152
1152
|
* dom.vcpus_flags = Fixnum,flags=0
|
1153
1153
|
*
|
1154
1154
|
|
1155
|
-
* Call virDomainSetVcpusFlags[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetVcpusFlags]
|
1155
|
+
* Call virDomainSetVcpusFlags[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpusFlags]
|
1156
1156
|
* to set the current number of virtual CPUs this domain should have. The
|
1157
1157
|
* flags parameter controls whether the change is made to the running domain
|
1158
1158
|
* the domain configuration, or both, and must not be 0. Deprecated;
|
@@ -1175,7 +1175,7 @@ static VALUE libvirt_domain_vcpus_flags_equal(VALUE d, VALUE in)
|
|
1175
1175
|
* call-seq:
|
1176
1176
|
* dom.pin_vcpu(vcpu, cpulist, flags=0) -> nil
|
1177
1177
|
*
|
1178
|
-
* Call virDomainPinVcpu[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPinVcpu]
|
1178
|
+
* Call virDomainPinVcpu[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinVcpu]
|
1179
1179
|
* to pin a particular virtual CPU to a range of physical processors. The
|
1180
1180
|
* cpulist should be an array of Fixnums representing the physical processors
|
1181
1181
|
* this virtual CPU should be allowed to be scheduled on.
|
@@ -1224,7 +1224,7 @@ static VALUE libvirt_domain_pin_vcpu(int argc, VALUE *argv, VALUE d)
|
|
1224
1224
|
* call-seq:
|
1225
1225
|
* dom.xml_desc(flags=0) -> String
|
1226
1226
|
*
|
1227
|
-
* Call virDomainGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetXMLDesc]
|
1227
|
+
* Call virDomainGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetXMLDesc]
|
1228
1228
|
* to retrieve the XML describing this domain.
|
1229
1229
|
*/
|
1230
1230
|
static VALUE libvirt_domain_xml_desc(int argc, VALUE *argv, VALUE d)
|
@@ -1243,7 +1243,7 @@ static VALUE libvirt_domain_xml_desc(int argc, VALUE *argv, VALUE d)
|
|
1243
1243
|
* call-seq:
|
1244
1244
|
* dom.undefine(flags=0) -> nil
|
1245
1245
|
*
|
1246
|
-
* Call virDomainUndefine[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainUndefine]
|
1246
|
+
* Call virDomainUndefine[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefine]
|
1247
1247
|
* to undefine the domain. After this call, the domain object is no longer
|
1248
1248
|
* valid.
|
1249
1249
|
*/
|
@@ -1273,7 +1273,7 @@ static VALUE libvirt_domain_undefine(int argc, VALUE *argv, VALUE d)
|
|
1273
1273
|
* call-seq:
|
1274
1274
|
* dom.create(flags=0) -> nil
|
1275
1275
|
*
|
1276
|
-
* Call virDomainCreate[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCreate]
|
1276
|
+
* Call virDomainCreate[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreate]
|
1277
1277
|
* to start an already defined domain.
|
1278
1278
|
*/
|
1279
1279
|
static VALUE libvirt_domain_create(int argc, VALUE *argv, VALUE d)
|
@@ -1300,7 +1300,7 @@ static VALUE libvirt_domain_create(int argc, VALUE *argv, VALUE d)
|
|
1300
1300
|
* call-seq:
|
1301
1301
|
* dom.autostart -> [true|false]
|
1302
1302
|
*
|
1303
|
-
* Call virDomainGetAutostart[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetAutostart]
|
1303
|
+
* Call virDomainGetAutostart[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetAutostart]
|
1304
1304
|
* to find out the state of the autostart flag for a domain.
|
1305
1305
|
*/
|
1306
1306
|
static VALUE libvirt_domain_autostart(VALUE d)
|
@@ -1318,7 +1318,7 @@ static VALUE libvirt_domain_autostart(VALUE d)
|
|
1318
1318
|
* call-seq:
|
1319
1319
|
* dom.autostart = [true|false]
|
1320
1320
|
*
|
1321
|
-
* Call virDomainSetAutostart[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetAutostart]
|
1321
|
+
* Call virDomainSetAutostart[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetAutostart]
|
1322
1322
|
* to make this domain autostart when libvirtd starts up.
|
1323
1323
|
*/
|
1324
1324
|
static VALUE libvirt_domain_autostart_equal(VALUE d, VALUE autostart)
|
@@ -1338,7 +1338,7 @@ static VALUE libvirt_domain_autostart_equal(VALUE d, VALUE autostart)
|
|
1338
1338
|
* call-seq:
|
1339
1339
|
* dom.attach_device(device_xml, flags=0) -> nil
|
1340
1340
|
*
|
1341
|
-
* Call virDomainAttachDevice[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainAttachDevice]
|
1341
|
+
* Call virDomainAttachDevice[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainAttachDevice]
|
1342
1342
|
* to attach the device described by the device_xml to the domain.
|
1343
1343
|
*/
|
1344
1344
|
static VALUE libvirt_domain_attach_device(int argc, VALUE *argv, VALUE d)
|
@@ -1368,7 +1368,7 @@ static VALUE libvirt_domain_attach_device(int argc, VALUE *argv, VALUE d)
|
|
1368
1368
|
* call-seq:
|
1369
1369
|
* dom.detach_device(device_xml, flags=0) -> nil
|
1370
1370
|
*
|
1371
|
-
* Call virDomainDetachDevice[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainDetachDevice]
|
1371
|
+
* Call virDomainDetachDevice[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainDetachDevice]
|
1372
1372
|
* to detach the device described by the device_xml from the domain.
|
1373
1373
|
*/
|
1374
1374
|
static VALUE libvirt_domain_detach_device(int argc, VALUE *argv, VALUE d)
|
@@ -1399,7 +1399,7 @@ static VALUE libvirt_domain_detach_device(int argc, VALUE *argv, VALUE d)
|
|
1399
1399
|
* call-seq:
|
1400
1400
|
* dom.update_device(device_xml, flags=0) -> nil
|
1401
1401
|
*
|
1402
|
-
* Call virDomainUpdateDeviceFlags[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainUpdateDeviceFlags]
|
1402
|
+
* Call virDomainUpdateDeviceFlags[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainUpdateDeviceFlags]
|
1403
1403
|
* to update the device described by the device_xml.
|
1404
1404
|
*/
|
1405
1405
|
static VALUE libvirt_domain_update_device(int argc, VALUE *argv, VALUE d)
|
@@ -1420,7 +1420,7 @@ static VALUE libvirt_domain_update_device(int argc, VALUE *argv, VALUE d)
|
|
1420
1420
|
* call-seq:
|
1421
1421
|
* dom.free -> nil
|
1422
1422
|
*
|
1423
|
-
* Call virDomainFree[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainFree]
|
1423
|
+
* Call virDomainFree[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainFree]
|
1424
1424
|
* to free a domain object.
|
1425
1425
|
*/
|
1426
1426
|
static VALUE libvirt_domain_free(VALUE d)
|
@@ -1455,7 +1455,7 @@ static virDomainSnapshotPtr domain_snapshot_get(VALUE d)
|
|
1455
1455
|
* call-seq:
|
1456
1456
|
* dom.snapshot_create_xml(snapshot_xml, flags=0) -> Libvirt::Domain::Snapshot
|
1457
1457
|
*
|
1458
|
-
* Call virDomainSnapshotCreateXML[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotCreateXML]
|
1458
|
+
* Call virDomainSnapshotCreateXML[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotCreateXML]
|
1459
1459
|
* to create a new snapshot based on snapshot_xml.
|
1460
1460
|
*/
|
1461
1461
|
static VALUE libvirt_domain_snapshot_create_xml(int argc, VALUE *argv, VALUE d)
|
@@ -1480,7 +1480,7 @@ static VALUE libvirt_domain_snapshot_create_xml(int argc, VALUE *argv, VALUE d)
|
|
1480
1480
|
* call-seq:
|
1481
1481
|
* dom.num_of_snapshots(flags=0) -> Fixnum
|
1482
1482
|
*
|
1483
|
-
* Call virDomainSnapshotNum[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotNum]
|
1483
|
+
* Call virDomainSnapshotNum[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotNum]
|
1484
1484
|
* to retrieve the number of available snapshots for this domain.
|
1485
1485
|
*/
|
1486
1486
|
static VALUE libvirt_domain_num_of_snapshots(int argc, VALUE *argv, VALUE d)
|
@@ -1499,7 +1499,7 @@ static VALUE libvirt_domain_num_of_snapshots(int argc, VALUE *argv, VALUE d)
|
|
1499
1499
|
* call-seq:
|
1500
1500
|
* dom.list_snapshots(flags=0) -> list
|
1501
1501
|
*
|
1502
|
-
* Call virDomainSnapshotListNames[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotListNames]
|
1502
|
+
* Call virDomainSnapshotListNames[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotListNames]
|
1503
1503
|
* to retrieve a list of snapshot names available for this domain.
|
1504
1504
|
*/
|
1505
1505
|
static VALUE libvirt_domain_list_snapshots(int argc, VALUE *argv, VALUE d)
|
@@ -1539,7 +1539,7 @@ static VALUE libvirt_domain_list_snapshots(int argc, VALUE *argv, VALUE d)
|
|
1539
1539
|
* call-seq:
|
1540
1540
|
* dom.lookup_snapshot_by_name(name, flags=0) -> Libvirt::Domain::Snapshot
|
1541
1541
|
*
|
1542
|
-
* Call virDomainSnapshotLookupByName[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotLookupByName]
|
1542
|
+
* Call virDomainSnapshotLookupByName[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotLookupByName]
|
1543
1543
|
* to retrieve a snapshot object corresponding to snapshot name.
|
1544
1544
|
*/
|
1545
1545
|
static VALUE libvirt_domain_lookup_snapshot_by_name(int argc, VALUE *argv,
|
@@ -1564,7 +1564,7 @@ static VALUE libvirt_domain_lookup_snapshot_by_name(int argc, VALUE *argv,
|
|
1564
1564
|
* call-seq:
|
1565
1565
|
* dom.has_current_snapshot?(flags=0) -> [true|false]
|
1566
1566
|
*
|
1567
|
-
* Call virDomainHasCurrentSnapshot[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainHasCurrentSnapshot]
|
1567
|
+
* Call virDomainHasCurrentSnapshot[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainHasCurrentSnapshot]
|
1568
1568
|
* to find out if this domain has a snapshot active.
|
1569
1569
|
*/
|
1570
1570
|
static VALUE libvirt_domain_has_current_snapshot_p(int argc, VALUE *argv,
|
@@ -1584,7 +1584,7 @@ static VALUE libvirt_domain_has_current_snapshot_p(int argc, VALUE *argv,
|
|
1584
1584
|
* call-seq:
|
1585
1585
|
* dom.revert_to_snapshot(snapshot_object, flags=0) -> nil
|
1586
1586
|
*
|
1587
|
-
* Call virDomainRevertToSnapshot[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainRevertToSnapshot]
|
1587
|
+
* Call virDomainRevertToSnapshot[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainRevertToSnapshot]
|
1588
1588
|
* to restore this domain to a previously saved snapshot.
|
1589
1589
|
*/
|
1590
1590
|
static VALUE libvirt_domain_revert_to_snapshot(int argc, VALUE *argv, VALUE d)
|
@@ -1603,7 +1603,7 @@ static VALUE libvirt_domain_revert_to_snapshot(int argc, VALUE *argv, VALUE d)
|
|
1603
1603
|
* call-seq:
|
1604
1604
|
* dom.current_snapshot(flags=0) -> Libvirt::Domain::Snapshot
|
1605
1605
|
*
|
1606
|
-
* Call virDomainCurrentSnapshot[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCurrentSnapshot]
|
1606
|
+
* Call virDomainCurrentSnapshot[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCurrentSnapshot]
|
1607
1607
|
* to retrieve the current snapshot for this domain (if any).
|
1608
1608
|
*/
|
1609
1609
|
static VALUE libvirt_domain_current_snapshot(int argc, VALUE *argv, VALUE d)
|
@@ -1626,7 +1626,7 @@ static VALUE libvirt_domain_current_snapshot(int argc, VALUE *argv, VALUE d)
|
|
1626
1626
|
* call-seq:
|
1627
1627
|
* snapshot.xml_desc(flags=0) -> String
|
1628
1628
|
*
|
1629
|
-
* Call virDomainSnapshotGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotGetXMLDesc]
|
1629
|
+
* Call virDomainSnapshotGetXMLDesc[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotGetXMLDesc]
|
1630
1630
|
* to retrieve the xml description for this snapshot.
|
1631
1631
|
*/
|
1632
1632
|
static VALUE libvirt_domain_snapshot_xml_desc(int argc, VALUE *argv, VALUE s)
|
@@ -1645,7 +1645,7 @@ static VALUE libvirt_domain_snapshot_xml_desc(int argc, VALUE *argv, VALUE s)
|
|
1645
1645
|
* call-seq:
|
1646
1646
|
* snapshot.delete(flags=0) -> nil
|
1647
1647
|
*
|
1648
|
-
* Call virDomainSnapshotDelete[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotDelete]
|
1648
|
+
* Call virDomainSnapshotDelete[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotDelete]
|
1649
1649
|
* to delete this snapshot.
|
1650
1650
|
*/
|
1651
1651
|
static VALUE libvirt_domain_snapshot_delete(int argc, VALUE *argv, VALUE s)
|
@@ -1664,7 +1664,7 @@ static VALUE libvirt_domain_snapshot_delete(int argc, VALUE *argv, VALUE s)
|
|
1664
1664
|
* call-seq:
|
1665
1665
|
* snapshot.free -> nil
|
1666
1666
|
*
|
1667
|
-
* Call virDomainSnapshotFree[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotFree]
|
1667
|
+
* Call virDomainSnapshotFree[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotFree]
|
1668
1668
|
* to free up the snapshot object. After this call the snapshot object is
|
1669
1669
|
* no longer valid.
|
1670
1670
|
*/
|
@@ -1680,7 +1680,7 @@ static VALUE libvirt_domain_snapshot_free(VALUE s)
|
|
1680
1680
|
* call-seq:
|
1681
1681
|
* snapshot.name -> String
|
1682
1682
|
*
|
1683
|
-
* Call virDomainSnapshotGetName[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotGetName]
|
1683
|
+
* Call virDomainSnapshotGetName[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotGetName]
|
1684
1684
|
* to get the name associated with a snapshot.
|
1685
1685
|
*/
|
1686
1686
|
static VALUE libvirt_domain_snapshot_name(VALUE s)
|
@@ -1697,7 +1697,7 @@ static VALUE libvirt_domain_snapshot_name(VALUE s)
|
|
1697
1697
|
* call-seq:
|
1698
1698
|
* dom.job_info -> Libvirt::Domain::JobInfo
|
1699
1699
|
*
|
1700
|
-
* Call virDomainGetJobInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetJobInfo]
|
1700
|
+
* Call virDomainGetJobInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetJobInfo]
|
1701
1701
|
* to retrieve the current state of the running domain job.
|
1702
1702
|
*/
|
1703
1703
|
static VALUE libvirt_domain_job_info(VALUE d)
|
@@ -1731,7 +1731,7 @@ static VALUE libvirt_domain_job_info(VALUE d)
|
|
1731
1731
|
* call-seq:
|
1732
1732
|
* dom.abort_job -> nil
|
1733
1733
|
*
|
1734
|
-
* Call virDomainAbortJob[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainAbortJob]
|
1734
|
+
* Call virDomainAbortJob[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainAbortJob]
|
1735
1735
|
* to abort the currently running job on this domain.
|
1736
1736
|
*/
|
1737
1737
|
static VALUE libvirt_domain_abort_job(VALUE d)
|
@@ -1766,7 +1766,7 @@ static VALUE create_sched_type_array(VALUE input)
|
|
1766
1766
|
* call-seq:
|
1767
1767
|
* dom.scheduler_type -> [type, #params]
|
1768
1768
|
*
|
1769
|
-
* Call virDomainGetSchedulerType[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetSchedulerType]
|
1769
|
+
* Call virDomainGetSchedulerType[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSchedulerType]
|
1770
1770
|
* to retrieve the scheduler type used on this domain.
|
1771
1771
|
*/
|
1772
1772
|
static VALUE libvirt_domain_scheduler_type(VALUE d)
|
@@ -1816,7 +1816,11 @@ static VALUE libvirt_domain_qemu_monitor_command(int argc, VALUE *argv, VALUE d)
|
|
1816
1816
|
type = virConnectGetType(ruby_libvirt_connect_get(d));
|
1817
1817
|
ruby_libvirt_raise_error_if(type == NULL, e_Error, "virConnectGetType",
|
1818
1818
|
ruby_libvirt_connect_get(d));
|
1819
|
-
|
1819
|
+
/* The type != NULL check is actually redundant, since if type was NULL
|
1820
|
+
* we would have raised an exception above. It's here to shut clang,
|
1821
|
+
* since clang can't tell that we would never reach this.
|
1822
|
+
*/
|
1823
|
+
if (type != NULL && strcmp(type, "QEMU") != 0) {
|
1820
1824
|
rb_raise(rb_eTypeError,
|
1821
1825
|
"Tried to use virDomainQemuMonitor command on %s connection",
|
1822
1826
|
type);
|
@@ -1844,7 +1848,7 @@ static VALUE libvirt_domain_qemu_monitor_command(int argc, VALUE *argv, VALUE d)
|
|
1844
1848
|
* call-seq:
|
1845
1849
|
* dom.updated? -> [True|False]
|
1846
1850
|
*
|
1847
|
-
* Call virDomainIsUpdated[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainIsUpdated]
|
1851
|
+
* Call virDomainIsUpdated[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsUpdated]
|
1848
1852
|
* to determine whether the definition for this domain has been updated.
|
1849
1853
|
*/
|
1850
1854
|
static VALUE libvirt_domain_is_updated(VALUE d)
|
@@ -1924,7 +1928,7 @@ static const char *scheduler_set(VALUE d, unsigned int flags,
|
|
1924
1928
|
* call-seq:
|
1925
1929
|
* dom.scheduler_parameters(flags=0) -> Hash
|
1926
1930
|
*
|
1927
|
-
* Call virDomainGetSchedulerParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetSchedulerParameters]
|
1931
|
+
* Call virDomainGetSchedulerParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSchedulerParameters]
|
1928
1932
|
* to retrieve all of the scheduler parameters for this domain. The keys and
|
1929
1933
|
* values in the hash that is returned are hypervisor specific.
|
1930
1934
|
*/
|
@@ -1961,7 +1965,7 @@ static struct ruby_libvirt_typed_param domain_scheduler_allowed[] = {
|
|
1961
1965
|
* call-seq:
|
1962
1966
|
* dom.scheduler_parameters = Hash
|
1963
1967
|
*
|
1964
|
-
* Call virDomainSetSchedulerParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetSchedulerParameters]
|
1968
|
+
* Call virDomainSetSchedulerParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetSchedulerParameters]
|
1965
1969
|
* to set the scheduler parameters for this domain. The keys and values in
|
1966
1970
|
* the input hash are hypervisor specific. If an empty hash is given, no
|
1967
1971
|
* changes are made (and no error is raised).
|
@@ -2032,7 +2036,7 @@ static const char *memory_set(VALUE d, unsigned int flags,
|
|
2032
2036
|
* call-seq:
|
2033
2037
|
* dom.memory_parameters(flags=0) -> Hash
|
2034
2038
|
*
|
2035
|
-
* Call virDomainGetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetMemoryParameters]
|
2039
|
+
* Call virDomainGetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMemoryParameters]
|
2036
2040
|
* to retrieve all of the memory parameters for this domain. The keys and
|
2037
2041
|
* values in the hash that is returned are hypervisor specific.
|
2038
2042
|
*/
|
@@ -2058,7 +2062,7 @@ static struct ruby_libvirt_typed_param domain_memory_allowed[] = {
|
|
2058
2062
|
* call-seq:
|
2059
2063
|
* dom.memory_parameters = Hash,flags=0
|
2060
2064
|
*
|
2061
|
-
* Call virDomainSetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetMemoryParameters]
|
2065
|
+
* Call virDomainSetMemoryParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemoryParameters]
|
2062
2066
|
* to set the memory parameters for this domain. The keys and values in
|
2063
2067
|
* the input hash are hypervisor specific.
|
2064
2068
|
*/
|
@@ -2129,7 +2133,7 @@ static const char *blkio_set(VALUE d, unsigned int flags,
|
|
2129
2133
|
* call-seq:
|
2130
2134
|
* dom.blkio_parameters(flags=0) -> Hash
|
2131
2135
|
*
|
2132
|
-
* Call virDomainGetBlkioParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetBlkioParameters]
|
2136
|
+
* Call virDomainGetBlkioParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlkioParameters]
|
2133
2137
|
* to retrieve all of the blkio parameters for this domain. The keys and
|
2134
2138
|
* values in the hash that is returned are hypervisor specific.
|
2135
2139
|
*/
|
@@ -2153,7 +2157,7 @@ static struct ruby_libvirt_typed_param blkio_allowed[] = {
|
|
2153
2157
|
* call-seq:
|
2154
2158
|
* dom.blkio_parameters = Hash,flags=0
|
2155
2159
|
*
|
2156
|
-
* Call virDomainSetBlkioParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetBlkioParameters]
|
2160
|
+
* Call virDomainSetBlkioParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlkioParameters]
|
2157
2161
|
* to set the blkio parameters for this domain. The keys and values in
|
2158
2162
|
* the input hash are hypervisor specific.
|
2159
2163
|
*/
|
@@ -2175,7 +2179,7 @@ static VALUE libvirt_domain_blkio_parameters_equal(VALUE d, VALUE in)
|
|
2175
2179
|
* call-seq:
|
2176
2180
|
* dom.state(flags=0) -> state, reason
|
2177
2181
|
*
|
2178
|
-
* Call virDomainGetState[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetState]
|
2182
|
+
* Call virDomainGetState[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetState]
|
2179
2183
|
* to get the current state of the domain.
|
2180
2184
|
*/
|
2181
2185
|
static VALUE libvirt_domain_state(int argc, VALUE *argv, VALUE d)
|
@@ -2204,7 +2208,7 @@ static VALUE libvirt_domain_state(int argc, VALUE *argv, VALUE d)
|
|
2204
2208
|
* call-seq:
|
2205
2209
|
* dom.open_console(device, stream, flags=0) -> nil
|
2206
2210
|
*
|
2207
|
-
* Call virDomainOpenConsole[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainOpenConsole]
|
2211
|
+
* Call virDomainOpenConsole[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenConsole]
|
2208
2212
|
* to open up a console to device over stream.
|
2209
2213
|
*/
|
2210
2214
|
static VALUE libvirt_domain_open_console(int argc, VALUE *argv, VALUE d)
|
@@ -2227,7 +2231,7 @@ static VALUE libvirt_domain_open_console(int argc, VALUE *argv, VALUE d)
|
|
2227
2231
|
* call-seq:
|
2228
2232
|
* dom.screenshot(stream, screen, flags=0) -> nil
|
2229
2233
|
*
|
2230
|
-
* Call virDomainScreenshot[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainScreenshot]
|
2234
|
+
* Call virDomainScreenshot[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainScreenshot]
|
2231
2235
|
* to take a screenshot of the domain console as a stream.
|
2232
2236
|
*/
|
2233
2237
|
static VALUE libvirt_domain_screenshot(int argc, VALUE *argv, VALUE d)
|
@@ -2250,7 +2254,7 @@ static VALUE libvirt_domain_screenshot(int argc, VALUE *argv, VALUE d)
|
|
2250
2254
|
* call-seq:
|
2251
2255
|
* dom.inject_nmi(flags=0) -> nil
|
2252
2256
|
*
|
2253
|
-
* Call virDomainInjectNMI[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainInjectNMI]
|
2257
|
+
* Call virDomainInjectNMI[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainInjectNMI]
|
2254
2258
|
* to send an NMI to the guest.
|
2255
2259
|
*/
|
2256
2260
|
static VALUE libvirt_domain_inject_nmi(int argc, VALUE *argv, VALUE d)
|
@@ -2271,7 +2275,7 @@ static VALUE libvirt_domain_inject_nmi(int argc, VALUE *argv, VALUE d)
|
|
2271
2275
|
* call-seq:
|
2272
2276
|
* dom.control_info(flags=0) -> Libvirt::Domain::ControlInfo
|
2273
2277
|
*
|
2274
|
-
* Call virDomainGetControlInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetControlInfo]
|
2278
|
+
* Call virDomainGetControlInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetControlInfo]
|
2275
2279
|
* to retrieve domain control interface information.
|
2276
2280
|
*/
|
2277
2281
|
static VALUE libvirt_domain_control_info(int argc, VALUE *argv, VALUE d)
|
@@ -2302,7 +2306,7 @@ static VALUE libvirt_domain_control_info(int argc, VALUE *argv, VALUE d)
|
|
2302
2306
|
* call-seq:
|
2303
2307
|
* dom.send_key(codeset, holdtime, keycodes)
|
2304
2308
|
*
|
2305
|
-
* Call virDomainSendKey[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSendKey]
|
2309
|
+
* Call virDomainSendKey[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSendKey]
|
2306
2310
|
* to send key(s) to the domain. Keycodes has to be an array of keys to send.
|
2307
2311
|
*/
|
2308
2312
|
VALUE libvirt_domain_send_key(VALUE d, VALUE codeset, VALUE holdtime,
|
@@ -2332,7 +2336,7 @@ VALUE libvirt_domain_send_key(VALUE d, VALUE codeset, VALUE holdtime,
|
|
2332
2336
|
* call-seq:
|
2333
2337
|
* dom.migrate_max_speed(flags=0) -> Fixnum
|
2334
2338
|
*
|
2335
|
-
* Call virDomainMigrateGetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateGetMaxSpeed]
|
2339
|
+
* Call virDomainMigrateGetMaxSpeed[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetMaxSpeed]
|
2336
2340
|
* to retrieve the maximum speed a migration can use.
|
2337
2341
|
*/
|
2338
2342
|
static VALUE libvirt_domain_migrate_max_speed(int argc, VALUE *argv, VALUE d)
|
@@ -2358,7 +2362,7 @@ static VALUE libvirt_domain_migrate_max_speed(int argc, VALUE *argv, VALUE d)
|
|
2358
2362
|
* call-seq:
|
2359
2363
|
* dom.reset(flags=0) -> nil
|
2360
2364
|
*
|
2361
|
-
* Call virDomainReset[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainReset]
|
2365
|
+
* Call virDomainReset[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainReset]
|
2362
2366
|
* to reset a domain immediately.
|
2363
2367
|
*/
|
2364
2368
|
static VALUE libvirt_domain_reset(int argc, VALUE *argv, VALUE d)
|
@@ -2378,7 +2382,7 @@ static VALUE libvirt_domain_reset(int argc, VALUE *argv, VALUE d)
|
|
2378
2382
|
* call-seq:
|
2379
2383
|
* dom.hostname(flags=0) -> nil
|
2380
2384
|
*
|
2381
|
-
* Call virDomainGetHostname[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetHostname]
|
2385
|
+
* Call virDomainGetHostname[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetHostname]
|
2382
2386
|
* to get the hostname from a domain.
|
2383
2387
|
*/
|
2384
2388
|
static VALUE libvirt_domain_hostname(int argc, VALUE *argv, VALUE d)
|
@@ -2399,7 +2403,7 @@ static VALUE libvirt_domain_hostname(int argc, VALUE *argv, VALUE d)
|
|
2399
2403
|
* call-seq:
|
2400
2404
|
* dom.metadata(type, uri=nil, flags=0) -> String
|
2401
2405
|
*
|
2402
|
-
* Call virDomainGetMetadata[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetMetadata]
|
2406
|
+
* Call virDomainGetMetadata[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMetadata]
|
2403
2407
|
* to get the metadata from a domain.
|
2404
2408
|
*/
|
2405
2409
|
static VALUE libvirt_domain_metadata(int argc, VALUE *argv, VALUE d)
|
@@ -2421,7 +2425,7 @@ static VALUE libvirt_domain_metadata(int argc, VALUE *argv, VALUE d)
|
|
2421
2425
|
* call-seq:
|
2422
2426
|
* dom.metadata = Fixnum,string/nil,key=nil,uri=nil,flags=0 -> nil
|
2423
2427
|
*
|
2424
|
-
* Call virDomainSetMetadata[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetMetadata]
|
2428
|
+
* Call virDomainSetMetadata[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMetadata]
|
2425
2429
|
* to set the metadata for a domain.
|
2426
2430
|
*/
|
2427
2431
|
static VALUE libvirt_domain_metadata_equal(VALUE d, VALUE in)
|
@@ -2467,7 +2471,7 @@ static VALUE libvirt_domain_metadata_equal(VALUE d, VALUE in)
|
|
2467
2471
|
* call-seq:
|
2468
2472
|
* dom.send_process_signal(pid, signum, flags=0) -> nil
|
2469
2473
|
*
|
2470
|
-
* Call virDomainSendProcessSignal[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSendProcessSignal]
|
2474
|
+
* Call virDomainSendProcessSignal[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSendProcessSignal]
|
2471
2475
|
* to send a signal to a process inside the domain.
|
2472
2476
|
*/
|
2473
2477
|
static VALUE libvirt_domain_send_process_signal(int argc, VALUE *argv, VALUE d)
|
@@ -2489,7 +2493,7 @@ static VALUE libvirt_domain_send_process_signal(int argc, VALUE *argv, VALUE d)
|
|
2489
2493
|
* call-seq:
|
2490
2494
|
* dom.list_all_snapshots(flags=0) -> Array
|
2491
2495
|
*
|
2492
|
-
* Call virDomainListAllSnapshots[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainListAllSnapshots]
|
2496
|
+
* Call virDomainListAllSnapshots[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainListAllSnapshots]
|
2493
2497
|
* to get an array of snapshot objects for all snapshots.
|
2494
2498
|
*/
|
2495
2499
|
static VALUE libvirt_domain_list_all_snapshots(int argc, VALUE *argv, VALUE d)
|
@@ -2507,7 +2511,7 @@ static VALUE libvirt_domain_list_all_snapshots(int argc, VALUE *argv, VALUE d)
|
|
2507
2511
|
* call-seq:
|
2508
2512
|
* snapshot.num_children(flags=0) -> Fixnum
|
2509
2513
|
*
|
2510
|
-
* Call virDomainSnapshotNumChildren[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotNumChildren]
|
2514
|
+
* Call virDomainSnapshotNumChildren[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotNumChildren]
|
2511
2515
|
* to get the number of children snapshots of this snapshot.
|
2512
2516
|
*/
|
2513
2517
|
static VALUE libvirt_domain_snapshot_num_children(int argc, VALUE *argv,
|
@@ -2529,7 +2533,7 @@ static VALUE libvirt_domain_snapshot_num_children(int argc, VALUE *argv,
|
|
2529
2533
|
* call-seq:
|
2530
2534
|
* snapshot.list_children_names(flags=0) -> Array
|
2531
2535
|
*
|
2532
|
-
* Call virDomainSnapshotListChildrenNames[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotListChildrenNames]
|
2536
|
+
* Call virDomainSnapshotListChildrenNames[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotListChildrenNames]
|
2533
2537
|
* to get an array of strings representing the children of this snapshot.
|
2534
2538
|
*/
|
2535
2539
|
static VALUE libvirt_domain_snapshot_list_children_names(int argc, VALUE *argv,
|
@@ -2593,7 +2597,7 @@ error:
|
|
2593
2597
|
* call-seq:
|
2594
2598
|
* snapshot.list_all_children(flags=0) -> Array
|
2595
2599
|
*
|
2596
|
-
* Call virDomainSnapshotListAllChildren[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotListAllChildren]
|
2600
|
+
* Call virDomainSnapshotListAllChildren[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotListAllChildren]
|
2597
2601
|
* to get an array of snapshot objects that are children of this snapshot.
|
2598
2602
|
*/
|
2599
2603
|
static VALUE libvirt_domain_snapshot_list_all_children(int argc, VALUE *argv,
|
@@ -2612,7 +2616,7 @@ static VALUE libvirt_domain_snapshot_list_all_children(int argc, VALUE *argv,
|
|
2612
2616
|
* call-seq:
|
2613
2617
|
* snapshot.parent(flags=0) -> [Libvirt::Domain::Snapshot|nil]
|
2614
2618
|
*
|
2615
|
-
* Call virDomainSnapshotGetParent[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotGetParent]
|
2619
|
+
* Call virDomainSnapshotGetParent[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotGetParent]
|
2616
2620
|
* to get the parent of this snapshot (nil will be returned if this is a root
|
2617
2621
|
* snapshot).
|
2618
2622
|
*/
|
@@ -2649,7 +2653,7 @@ static VALUE libvirt_domain_snapshot_parent(int argc, VALUE *argv, VALUE s)
|
|
2649
2653
|
* call-seq:
|
2650
2654
|
* snapshot.current?(flags=0) -> [true|false]
|
2651
2655
|
*
|
2652
|
-
* Call virDomainSnapshotIsCurrent[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotIsCurrent]
|
2656
|
+
* Call virDomainSnapshotIsCurrent[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotIsCurrent]
|
2653
2657
|
* to determine if the snapshot is the domain's current snapshot.
|
2654
2658
|
*/
|
2655
2659
|
static VALUE libvirt_domain_snapshot_current_p(int argc, VALUE *argv, VALUE s)
|
@@ -2670,7 +2674,7 @@ static VALUE libvirt_domain_snapshot_current_p(int argc, VALUE *argv, VALUE s)
|
|
2670
2674
|
* call-seq:
|
2671
2675
|
* snapshot.has_metadata?(flags=0) -> [true|false]
|
2672
2676
|
*
|
2673
|
-
* Call virDomainSnapshotHasMetadata[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSnapshotHasMetadata]
|
2677
|
+
* Call virDomainSnapshotHasMetadata[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSnapshotHasMetadata]
|
2674
2678
|
* to determine if the snapshot is associated with libvirt metadata.
|
2675
2679
|
*/
|
2676
2680
|
static VALUE libvirt_domain_snapshot_has_metadata_p(int argc, VALUE *argv,
|
@@ -2692,7 +2696,7 @@ static VALUE libvirt_domain_snapshot_has_metadata_p(int argc, VALUE *argv,
|
|
2692
2696
|
* call-seq:
|
2693
2697
|
* dom.memory_stats_period = Fixnum,flags=0
|
2694
2698
|
*
|
2695
|
-
* Call virDomainSetMemoryStatsPeriod[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetMemoryStatsPeriod]
|
2699
|
+
* Call virDomainSetMemoryStatsPeriod[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemoryStatsPeriod]
|
2696
2700
|
* to set the memory statistics collection period.
|
2697
2701
|
*/
|
2698
2702
|
static VALUE libvirt_domain_memory_stats_period(VALUE d, VALUE in)
|
@@ -2714,7 +2718,7 @@ static VALUE libvirt_domain_memory_stats_period(VALUE d, VALUE in)
|
|
2714
2718
|
* call-seq:
|
2715
2719
|
* dom.fstrim(mountpoint=nil, minimum=0, flags=0) -> nil
|
2716
2720
|
*
|
2717
|
-
* Call virDomainFSTrim[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainFSTrim]
|
2721
|
+
* Call virDomainFSTrim[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSTrim]
|
2718
2722
|
* to call FITRIM within the guest.
|
2719
2723
|
*/
|
2720
2724
|
static VALUE libvirt_domain_fstrim(int argc, VALUE *argv, VALUE d)
|
@@ -2736,7 +2740,7 @@ static VALUE libvirt_domain_fstrim(int argc, VALUE *argv, VALUE d)
|
|
2736
2740
|
* call-seq:
|
2737
2741
|
* dom.block_rebase(disk, base=nil, bandwidth=0, flags=0) -> nil
|
2738
2742
|
*
|
2739
|
-
* Call virDomainBlockRebase[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockRebase]
|
2743
|
+
* Call virDomainBlockRebase[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase]
|
2740
2744
|
* to populate a disk image with data from its backing image chain.
|
2741
2745
|
*/
|
2742
2746
|
static VALUE libvirt_domain_block_rebase(int argc, VALUE *argv, VALUE d)
|
@@ -2760,7 +2764,7 @@ static VALUE libvirt_domain_block_rebase(int argc, VALUE *argv, VALUE d)
|
|
2760
2764
|
* call-seq:
|
2761
2765
|
* dom.open_channel(name, stream, flags=0) -> nil
|
2762
2766
|
*
|
2763
|
-
* Call virDomainOpenChannel[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainOpenChannel]
|
2767
|
+
* Call virDomainOpenChannel[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenChannel]
|
2764
2768
|
* to open a channel on a guest. Note that name may be nil, in which case the
|
2765
2769
|
* first channel on the guest is opened.
|
2766
2770
|
*/
|
@@ -2784,7 +2788,7 @@ static VALUE libvirt_domain_open_channel(int argc, VALUE *argv, VALUE d)
|
|
2784
2788
|
* call-seq:
|
2785
2789
|
* dom.create_with_files(fds=nil, flags=0) -> nil
|
2786
2790
|
*
|
2787
|
-
* Call virDomainCreateWithFiles[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCreateWithFiles]
|
2791
|
+
* Call virDomainCreateWithFiles[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateWithFiles]
|
2788
2792
|
* to launch a defined domain with a set of open file descriptors.
|
2789
2793
|
*/
|
2790
2794
|
static VALUE libvirt_domain_create_with_files(int argc, VALUE *argv, VALUE d)
|
@@ -2823,7 +2827,7 @@ static VALUE libvirt_domain_create_with_files(int argc, VALUE *argv, VALUE d)
|
|
2823
2827
|
* call-seq:
|
2824
2828
|
* dom.open_graphics(fd, idx=0, flags=0) -> nil
|
2825
2829
|
*
|
2826
|
-
* Call virDomainOpenGraphics[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainOpenGraphics]
|
2830
|
+
* Call virDomainOpenGraphics[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenGraphics]
|
2827
2831
|
* to connect a file descriptor to the graphics backend of the domain.
|
2828
2832
|
*/
|
2829
2833
|
static VALUE libvirt_domain_open_graphics(int argc, VALUE *argv, VALUE d)
|
@@ -2845,7 +2849,7 @@ static VALUE libvirt_domain_open_graphics(int argc, VALUE *argv, VALUE d)
|
|
2845
2849
|
* call-seq:
|
2846
2850
|
* dom.pmwakeup(flags=0) -> nil
|
2847
2851
|
*
|
2848
|
-
* Call virDomainPMWakeup[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPMWakeup]
|
2852
|
+
* Call virDomainPMWakeup[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainPMWakeup]
|
2849
2853
|
* to inject a wakeup into the guest.
|
2850
2854
|
*/
|
2851
2855
|
static VALUE libvirt_domain_pmwakeup(int argc, VALUE *argv, VALUE d)
|
@@ -2866,7 +2870,7 @@ static VALUE libvirt_domain_pmwakeup(int argc, VALUE *argv, VALUE d)
|
|
2866
2870
|
* call-seq:
|
2867
2871
|
* dom.block_resize(disk, size, flags=0) -> nil
|
2868
2872
|
*
|
2869
|
-
* Call virDomainBlockResize[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockResize]
|
2873
|
+
* Call virDomainBlockResize[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockResize]
|
2870
2874
|
* to resize a block device of domain.
|
2871
2875
|
*/
|
2872
2876
|
static VALUE libvirt_domain_block_resize(int argc, VALUE *argv, VALUE d)
|
@@ -2888,7 +2892,7 @@ static VALUE libvirt_domain_block_resize(int argc, VALUE *argv, VALUE d)
|
|
2888
2892
|
* call-seq:
|
2889
2893
|
* dom.pmsuspend_for_duration(target, duration, flags=0) -> nil
|
2890
2894
|
*
|
2891
|
-
* Call virDomainPMSuspendForDuration[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPMSuspendForDuration]
|
2895
|
+
* Call virDomainPMSuspendForDuration[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainPMSuspendForDuration]
|
2892
2896
|
* to have the domain enter the target power management suspend level.
|
2893
2897
|
*/
|
2894
2898
|
static VALUE libvirt_domain_pmsuspend_for_duration(int argc, VALUE *argv,
|
@@ -2911,7 +2915,7 @@ static VALUE libvirt_domain_pmsuspend_for_duration(int argc, VALUE *argv,
|
|
2911
2915
|
* call-seq:
|
2912
2916
|
* dom.migrate_compression_cache(flags=0) -> Fixnum
|
2913
2917
|
*
|
2914
|
-
* Call virDomainMigrateGetCompressionCache[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateGetCompressionCache]
|
2918
|
+
* Call virDomainMigrateGetCompressionCache[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetCompressionCache]
|
2915
2919
|
* to get the current size of the migration cache.
|
2916
2920
|
*/
|
2917
2921
|
static VALUE libvirt_domain_migrate_compression_cache(int argc, VALUE *argv,
|
@@ -2939,7 +2943,7 @@ static VALUE libvirt_domain_migrate_compression_cache(int argc, VALUE *argv,
|
|
2939
2943
|
* call-seq:
|
2940
2944
|
* dom.migrate_compression_cache = Fixnum,flags=0
|
2941
2945
|
*
|
2942
|
-
* Call virDomainMigrateSetCompressionCache[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateSetCompressionCache]
|
2946
|
+
* Call virDomainMigrateSetCompressionCache[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetCompressionCache]
|
2943
2947
|
* to set the current size of the migration cache.
|
2944
2948
|
*/
|
2945
2949
|
static VALUE libvirt_domain_migrate_compression_cache_equal(VALUE d, VALUE in)
|
@@ -2961,7 +2965,7 @@ static VALUE libvirt_domain_migrate_compression_cache_equal(VALUE d, VALUE in)
|
|
2961
2965
|
* call-seq:
|
2962
2966
|
* dom.disk_errors(flags=0) -> Hash
|
2963
2967
|
*
|
2964
|
-
* Call virDomainGetDiskErrors[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetDiskErrors]
|
2968
|
+
* Call virDomainGetDiskErrors[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetDiskErrors]
|
2965
2969
|
* to get errors on disks in the domain.
|
2966
2970
|
*/
|
2967
2971
|
static VALUE libvirt_domain_disk_errors(int argc, VALUE *argv, VALUE d)
|
@@ -3002,7 +3006,7 @@ static VALUE libvirt_domain_disk_errors(int argc, VALUE *argv, VALUE d)
|
|
3002
3006
|
* call-seq:
|
3003
3007
|
* dom.emulator_pin_info(flags=0) -> Array
|
3004
3008
|
*
|
3005
|
-
* Call virDomainGetEmulatorPinInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetEmulatorPinInfo]
|
3009
|
+
* Call virDomainGetEmulatorPinInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetEmulatorPinInfo]
|
3006
3010
|
* to an array representing the mapping of emulator threads to physical CPUs.
|
3007
3011
|
* For each physical CPU in the machine, the array offset corresponding to that
|
3008
3012
|
* CPU is 'true' if an emulator thread is running on that CPU, and 'false'
|
@@ -3046,7 +3050,7 @@ static VALUE libvirt_domain_emulator_pin_info(int argc, VALUE *argv, VALUE d)
|
|
3046
3050
|
* call-seq:
|
3047
3051
|
* dom.pin_emulator(cpulist, flags=0) -> nil
|
3048
3052
|
*
|
3049
|
-
* Call virDomainPinVcpu[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPinVcpu]
|
3053
|
+
* Call virDomainPinVcpu[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinVcpu]
|
3050
3054
|
* to pin the emulator to a range of physical processors. The cpulist should
|
3051
3055
|
* be an array of Fixnums representing the physical processors this domain's
|
3052
3056
|
* emulator should be allowed to be scheduled on.
|
@@ -3086,7 +3090,7 @@ static VALUE libvirt_domain_pin_emulator(int argc, VALUE *argv, VALUE d)
|
|
3086
3090
|
* call-seq:
|
3087
3091
|
* dom.security_label_list -> [ Libvirt::Domain::SecurityLabel ]
|
3088
3092
|
*
|
3089
|
-
* Call virDomainGetSecurityLabelList[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetSecurityLabelList]
|
3093
|
+
* Call virDomainGetSecurityLabelList[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSecurityLabelList]
|
3090
3094
|
* to retrieve the security labels applied to this domain.
|
3091
3095
|
*/
|
3092
3096
|
static VALUE libvirt_domain_security_label_list(VALUE d)
|
@@ -3137,7 +3141,7 @@ static VALUE params_to_hash(VALUE in)
|
|
3137
3141
|
* call-seq:
|
3138
3142
|
* dom.job_stats -> Hash
|
3139
3143
|
*
|
3140
|
-
* Call virDomainGetJobStats[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetJobStats]
|
3144
|
+
* Call virDomainGetJobStats[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetJobStats]
|
3141
3145
|
* to retrieve information about progress of a background job on a domain.
|
3142
3146
|
*/
|
3143
3147
|
static VALUE libvirt_domain_job_stats(int argc, VALUE *argv, VALUE d)
|
@@ -3233,7 +3237,7 @@ static const char *iotune_set(VALUE d, unsigned int flags,
|
|
3233
3237
|
* call-seq:
|
3234
3238
|
* dom.block_iotune(disk=nil, flags=0) -> Hash
|
3235
3239
|
*
|
3236
|
-
* Call virDomainGetBlockIoTune[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetBlockIoTune]
|
3240
|
+
* Call virDomainGetBlockIoTune[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockIoTune]
|
3237
3241
|
* to retrieve all of the block IO tune parameters for this domain. The keys
|
3238
3242
|
* and values in the hash that is returned are hypervisor specific.
|
3239
3243
|
*/
|
@@ -3267,7 +3271,7 @@ static struct ruby_libvirt_typed_param iotune_allowed[] = {
|
|
3267
3271
|
* call-seq:
|
3268
3272
|
* dom.block_iotune = disk,Hash,flags=0
|
3269
3273
|
*
|
3270
|
-
* Call virDomainSetBlockIoTune[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetBlockIoTune]
|
3274
|
+
* Call virDomainSetBlockIoTune[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlockIoTune]
|
3271
3275
|
* to set the block IO tune parameters for the supplied disk on this domain.
|
3272
3276
|
* The keys and values in the input hash are hypervisor specific.
|
3273
3277
|
*/
|
@@ -3304,7 +3308,7 @@ static VALUE libvirt_domain_block_iotune_equal(VALUE d, VALUE in)
|
|
3304
3308
|
* call-seq:
|
3305
3309
|
* dom.block_commit(disk, base=nil, top=nil, bandwidth=0, flags=0) -> nil
|
3306
3310
|
*
|
3307
|
-
* Call virDomainBlockCommit[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockCommit]
|
3311
|
+
* Call virDomainBlockCommit[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockCommit]
|
3308
3312
|
* to commit changes from a top-level backing file into a lower level base file.
|
3309
3313
|
*/
|
3310
3314
|
static VALUE libvirt_domain_block_commit(int argc, VALUE *argv, VALUE d)
|
@@ -3329,7 +3333,7 @@ static VALUE libvirt_domain_block_commit(int argc, VALUE *argv, VALUE d)
|
|
3329
3333
|
* call-seq:
|
3330
3334
|
* dom.block_pull(disk, bandwidth=0, flags=0) -> nil
|
3331
3335
|
*
|
3332
|
-
* Call virDomainBlockPull[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockPull]
|
3336
|
+
* Call virDomainBlockPull[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockPull]
|
3333
3337
|
* to pull changes from a backing file into a disk image.
|
3334
3338
|
*/
|
3335
3339
|
static VALUE libvirt_domain_block_pull(int argc, VALUE *argv, VALUE d)
|
@@ -3352,7 +3356,7 @@ static VALUE libvirt_domain_block_pull(int argc, VALUE *argv, VALUE d)
|
|
3352
3356
|
* call-seq:
|
3353
3357
|
* dom.block_job_speed = disk,bandwidth=0,flags=0
|
3354
3358
|
*
|
3355
|
-
* Call virDomainBlockJobSetSpeed[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockJobSetSpeed]
|
3359
|
+
* Call virDomainBlockJobSetSpeed[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockJobSetSpeed]
|
3356
3360
|
* to set the maximum allowable bandwidth a block job may consume.
|
3357
3361
|
*/
|
3358
3362
|
static VALUE libvirt_domain_block_job_speed_equal(VALUE d, VALUE in)
|
@@ -3398,7 +3402,7 @@ static VALUE libvirt_domain_block_job_speed_equal(VALUE d, VALUE in)
|
|
3398
3402
|
* call-seq:
|
3399
3403
|
* dom.block_job_info(disk, flags=0) -> Libvirt::Domain::BlockJobInfo
|
3400
3404
|
*
|
3401
|
-
* Call virDomainGetBlockJobInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetBlockJobInfo]
|
3405
|
+
* Call virDomainGetBlockJobInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockJobInfo]
|
3402
3406
|
* to get block job information for a given disk.
|
3403
3407
|
*/
|
3404
3408
|
static VALUE libvirt_domain_block_job_info(int argc, VALUE *argv, VALUE d)
|
@@ -3433,7 +3437,7 @@ static VALUE libvirt_domain_block_job_info(int argc, VALUE *argv, VALUE d)
|
|
3433
3437
|
* call-seq:
|
3434
3438
|
* dom.block_job_abort(disk, flags=0) -> nil
|
3435
3439
|
*
|
3436
|
-
* Call virDomainBlockJobAbort[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainBlockJobAbort]
|
3440
|
+
* Call virDomainBlockJobAbort[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockJobAbort]
|
3437
3441
|
* to cancel an active block job on the given disk.
|
3438
3442
|
*/
|
3439
3443
|
static VALUE libvirt_domain_block_job_abort(int argc, VALUE *argv, VALUE d)
|
@@ -3498,7 +3502,7 @@ static const char *interface_set(VALUE d, unsigned int flags,
|
|
3498
3502
|
* call-seq:
|
3499
3503
|
* dom.interface_parameters(interface, flags=0) -> Hash
|
3500
3504
|
*
|
3501
|
-
* Call virDomainGetInterfaceParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetInterfaceParameters]
|
3505
|
+
* Call virDomainGetInterfaceParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetInterfaceParameters]
|
3502
3506
|
* to retrieve the interface parameters for the given interface on this domain.
|
3503
3507
|
* The keys and values in the hash that is returned are hypervisor specific.
|
3504
3508
|
*/
|
@@ -3529,7 +3533,7 @@ static struct ruby_libvirt_typed_param interface_allowed[] = {
|
|
3529
3533
|
* call-seq:
|
3530
3534
|
* dom.interface_parameters = device,Hash,flags=0
|
3531
3535
|
*
|
3532
|
-
* Call virDomainSetInterfaceParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetInterfaceParameters]
|
3536
|
+
* Call virDomainSetInterfaceParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetInterfaceParameters]
|
3533
3537
|
* to set the interface parameters for the supplied device on this domain.
|
3534
3538
|
* The keys and values in the input hash are hypervisor specific.
|
3535
3539
|
*/
|
@@ -3595,7 +3599,7 @@ static const char *block_stats_get(VALUE d, unsigned int flags,
|
|
3595
3599
|
* call-seq:
|
3596
3600
|
* dom.block_stats_flags(disk, flags=0) -> Hash
|
3597
3601
|
*
|
3598
|
-
* Call virDomainGetBlockStatsFlags[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetBlockStatsFlags]
|
3602
|
+
* Call virDomainGetBlockStatsFlags[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockStatsFlags]
|
3599
3603
|
* to retrieve the block statistics for the given disk on this domain.
|
3600
3604
|
* The keys and values in the hash that is returned are hypervisor specific.
|
3601
3605
|
*/
|
@@ -3656,7 +3660,7 @@ static const char *numa_set(VALUE d, unsigned int flags,
|
|
3656
3660
|
* call-seq:
|
3657
3661
|
* dom.numa_parameters(flags=0) -> Hash
|
3658
3662
|
*
|
3659
|
-
* Call virDomainGetNumaParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetNumaParameters]
|
3663
|
+
* Call virDomainGetNumaParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetNumaParameters]
|
3660
3664
|
* to retrieve the numa parameters for this domain. The keys and values in
|
3661
3665
|
* the hash that is returned are hypervisor specific.
|
3662
3666
|
*/
|
@@ -3680,7 +3684,7 @@ static struct ruby_libvirt_typed_param numa_allowed[] = {
|
|
3680
3684
|
* call-seq:
|
3681
3685
|
* dom.numa_parameters = Hash,flags=0
|
3682
3686
|
*
|
3683
|
-
* Call virDomainSetNumaParameters[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetNumaParameters]
|
3687
|
+
* Call virDomainSetNumaParameters[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetNumaParameters]
|
3684
3688
|
* to set the numa parameters for this domain. The keys and values in the input
|
3685
3689
|
* hash are hypervisor specific.
|
3686
3690
|
*/
|
@@ -3703,7 +3707,7 @@ static VALUE libvirt_domain_numa_parameters_equal(VALUE d, VALUE in)
|
|
3703
3707
|
* call-seq:
|
3704
3708
|
* dom.lxc_open_namespace(flags=0) -> Array
|
3705
3709
|
*
|
3706
|
-
* Call virDomainLxcOpenNamespace[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLxcOpenNamespace]
|
3710
|
+
* Call virDomainLxcOpenNamespace[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainLxcOpenNamespace]
|
3707
3711
|
* to open an LXC namespace. Note that this will only work on connections to
|
3708
3712
|
* the LXC driver. The call will return an array of open file descriptors;
|
3709
3713
|
* these should be closed when use of them is finished.
|
@@ -3760,7 +3764,7 @@ error:
|
|
3760
3764
|
* call-seq:
|
3761
3765
|
* dom.qemu_agent_command(command, timeout=0, flags=0) -> String
|
3762
3766
|
*
|
3763
|
-
* Call virDomainQemuAgentCommand[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainQemuAgentCommand]
|
3767
|
+
* Call virDomainQemuAgentCommand[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainQemuAgentCommand]
|
3764
3768
|
* to run an arbitrary command on the Qemu Agent.
|
3765
3769
|
*/
|
3766
3770
|
static VALUE libvirt_domain_qemu_agent_command(int argc, VALUE *argv, VALUE d)
|
@@ -3794,7 +3798,7 @@ static VALUE libvirt_domain_qemu_agent_command(int argc, VALUE *argv, VALUE d)
|
|
3794
3798
|
* call-seq:
|
3795
3799
|
* dom.lxc_enter_namespace(fds, flags=0) -> Array
|
3796
3800
|
*
|
3797
|
-
* Call virDomainLxcEnterNamespace[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainLxcEnterNamespace]
|
3801
|
+
* Call virDomainLxcEnterNamespace[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainLxcEnterNamespace]
|
3798
3802
|
* to attach the process to the namespaces associated with the file descriptors
|
3799
3803
|
* in the fds array. Note that this call does not actually enter the namespace;
|
3800
3804
|
* the next call to fork will do that. Also note that this function will return
|
@@ -3871,7 +3875,7 @@ static struct ruby_libvirt_typed_param migrate3_allowed[] = {
|
|
3871
3875
|
* call-seq:
|
3872
3876
|
* dom.migrate3(dconn, Hash=nil, flags=0) -> Libvirt::Domain
|
3873
3877
|
*
|
3874
|
-
* Call virDomainMigrate3[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrate2]
|
3878
|
+
* Call virDomainMigrate3[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate2]
|
3875
3879
|
* to migrate a domain from the host on this connection to the connection
|
3876
3880
|
* referenced in dconn.
|
3877
3881
|
*/
|
@@ -3915,7 +3919,7 @@ static VALUE libvirt_domain_migrate3(int argc, VALUE *argv, VALUE d)
|
|
3915
3919
|
* call-seq:
|
3916
3920
|
* dom.migrate_to_uri3(duri=nil, Hash=nil, flags=0) -> nil
|
3917
3921
|
*
|
3918
|
-
* Call virDomainMigrateToURI3[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainMigrateToURI3]
|
3922
|
+
* Call virDomainMigrateToURI3[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI3]
|
3919
3923
|
* to migrate a domain from the host on this connection to the host whose
|
3920
3924
|
* libvirt URI is duri.
|
3921
3925
|
*/
|
@@ -3958,7 +3962,7 @@ static VALUE libvirt_domain_migrate_to_uri3(int argc, VALUE *argv, VALUE d)
|
|
3958
3962
|
* call-seq:
|
3959
3963
|
* dom.cpu_stats(start_cpu=-1, numcpus=1, flags=0) -> Hash
|
3960
3964
|
*
|
3961
|
-
* Call virDomainGetCPUStats[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetCPUStats]
|
3965
|
+
* Call virDomainGetCPUStats[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetCPUStats]
|
3962
3966
|
* to get statistics about CPU usage attributable to a single domain. If
|
3963
3967
|
* start_cpu is -1, then numcpus must be 1 and statistics attributable to the
|
3964
3968
|
* entire domain is returned. If start_cpu is any positive number, then it
|
@@ -4050,7 +4054,7 @@ static VALUE libvirt_domain_cpu_stats(int argc, VALUE *argv, VALUE d)
|
|
4050
4054
|
/*
|
4051
4055
|
* call-seq:
|
4052
4056
|
* dom.time(flags=0) -> Hash
|
4053
|
-
* Call virDomainGetTime[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetTime]
|
4057
|
+
* Call virDomainGetTime[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetTime]
|
4054
4058
|
* to get information about the guest time.
|
4055
4059
|
*/
|
4056
4060
|
static VALUE libvirt_domain_get_time(int argc, VALUE *argv, VALUE d)
|
@@ -4079,7 +4083,7 @@ static VALUE libvirt_domain_get_time(int argc, VALUE *argv, VALUE d)
|
|
4079
4083
|
/*
|
4080
4084
|
* call-seq:
|
4081
4085
|
* dom.time = Hash,flags=0
|
4082
|
-
* Call virDomainSetTime[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainSetTime]
|
4086
|
+
* Call virDomainSetTime[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetTime]
|
4083
4087
|
* to set guest time.
|
4084
4088
|
*/
|
4085
4089
|
static VALUE libvirt_domain_time_equal(VALUE d, VALUE in)
|
@@ -4104,7 +4108,7 @@ static VALUE libvirt_domain_time_equal(VALUE d, VALUE in)
|
|
4104
4108
|
* call-seq:
|
4105
4109
|
* dom.core_dump_with_format(filename, dumpformat, flags=0) -> nil
|
4106
4110
|
*
|
4107
|
-
* Call virDomainCoreDumpWithFormat[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainCoreDump]
|
4111
|
+
* Call virDomainCoreDumpWithFormat[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainCoreDump]
|
4108
4112
|
* to do a full memory dump of the domain to filename.
|
4109
4113
|
*/
|
4110
4114
|
static VALUE libvirt_domain_core_dump_with_format(int argc, VALUE *argv, VALUE d)
|
@@ -4127,7 +4131,7 @@ static VALUE libvirt_domain_core_dump_with_format(int argc, VALUE *argv, VALUE d
|
|
4127
4131
|
* call-seq:
|
4128
4132
|
* dom.fs_freeze(mountpoints=nil, flags=0) -> Fixnum
|
4129
4133
|
*
|
4130
|
-
* Call virDomainFSFreeze[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainFSFreeze]
|
4134
|
+
* Call virDomainFSFreeze[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSFreeze]
|
4131
4135
|
* to freeze the specified filesystems within the guest.
|
4132
4136
|
*/
|
4133
4137
|
static VALUE libvirt_domain_fs_freeze(int argc, VALUE *argv, VALUE d)
|
@@ -4168,7 +4172,7 @@ static VALUE libvirt_domain_fs_freeze(int argc, VALUE *argv, VALUE d)
|
|
4168
4172
|
* call-seq:
|
4169
4173
|
* dom.fs_thaw(mountpoints=nil, flags=0) -> Fixnum
|
4170
4174
|
*
|
4171
|
-
* Call virDomainFSThaw[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainFSThaw]
|
4175
|
+
* Call virDomainFSThaw[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSThaw]
|
4172
4176
|
* to thaw the specified filesystems within the guest.
|
4173
4177
|
*/
|
4174
4178
|
static VALUE libvirt_domain_fs_thaw(int argc, VALUE *argv, VALUE d)
|
@@ -4243,7 +4247,7 @@ static VALUE fs_info_wrap(VALUE arg)
|
|
4243
4247
|
* call-seq:
|
4244
4248
|
* dom.fs_info(flags=0) -> [Hash]
|
4245
4249
|
*
|
4246
|
-
* Call virDomainGetFSInfo[http://www.libvirt.org/html/libvirt-libvirt.html#virDomainGetFSInfo]
|
4250
|
+
* Call virDomainGetFSInfo[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetFSInfo]
|
4247
4251
|
* to get information about the guest filesystems.
|
4248
4252
|
*/
|
4249
4253
|
static VALUE libvirt_domain_fs_info(int argc, VALUE *argv, VALUE d)
|
@@ -4277,6 +4281,66 @@ static VALUE libvirt_domain_fs_info(int argc, VALUE *argv, VALUE d)
|
|
4277
4281
|
}
|
4278
4282
|
#endif
|
4279
4283
|
|
4284
|
+
#if HAVE_VIRDOMAINRENAME
|
4285
|
+
/*
|
4286
|
+
* call-seq:
|
4287
|
+
* dom.rename(name, flags=0) -> nil
|
4288
|
+
*
|
4289
|
+
* Call virDomainRename[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainRename]
|
4290
|
+
* to rename a domain.
|
4291
|
+
*/
|
4292
|
+
static VALUE libvirt_domain_rename(int argc, VALUE *argv, VALUE d)
|
4293
|
+
{
|
4294
|
+
VALUE flags, name;
|
4295
|
+
|
4296
|
+
rb_scan_args(argc, argv, "11", &name, &flags);
|
4297
|
+
|
4298
|
+
ruby_libvirt_generate_call_nil(virDomainRename,
|
4299
|
+
ruby_libvirt_connect_get(d),
|
4300
|
+
ruby_libvirt_domain_get(d),
|
4301
|
+
StringValueCStr(name),
|
4302
|
+
ruby_libvirt_value_to_uint(flags));
|
4303
|
+
}
|
4304
|
+
#endif
|
4305
|
+
|
4306
|
+
#if HAVE_VIRDOMAINSETUSERPASSWORD
|
4307
|
+
/*
|
4308
|
+
* call-seq:
|
4309
|
+
* dom.user_password = user,password,flags=0 -> nil
|
4310
|
+
*
|
4311
|
+
* Call virDomainSetUserPassword[http://www.libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetUserPassword]
|
4312
|
+
* to set the user password on a domain.
|
4313
|
+
*/
|
4314
|
+
static VALUE libvirt_domain_user_password_equal(VALUE d, VALUE in)
|
4315
|
+
{
|
4316
|
+
VALUE user, password, flags;
|
4317
|
+
|
4318
|
+
Check_Type(in, T_ARRAY);
|
4319
|
+
|
4320
|
+
if (RARRAY_LEN(in) == 2) {
|
4321
|
+
user = rb_ary_entry(in, 0);
|
4322
|
+
password = rb_ary_entry(in, 1);
|
4323
|
+
flags = INT2NUM(0);
|
4324
|
+
}
|
4325
|
+
else if (RARRAY_LEN(in) == 3) {
|
4326
|
+
user = rb_ary_entry(in, 0);
|
4327
|
+
password = rb_ary_entry(in, 1);
|
4328
|
+
flags = rb_ary_entry(in, 2);
|
4329
|
+
}
|
4330
|
+
else {
|
4331
|
+
rb_raise(rb_eArgError, "wrong number of arguments (%ld for 2 or 3)",
|
4332
|
+
RARRAY_LEN(in));
|
4333
|
+
}
|
4334
|
+
|
4335
|
+
ruby_libvirt_generate_call_nil(virDomainSetUserPassword,
|
4336
|
+
ruby_libvirt_connect_get(d),
|
4337
|
+
ruby_libvirt_domain_get(d),
|
4338
|
+
StringValueCStr(user),
|
4339
|
+
StringValueCStr(password),
|
4340
|
+
ruby_libvirt_value_to_uint(flags));
|
4341
|
+
}
|
4342
|
+
#endif
|
4343
|
+
|
4280
4344
|
/*
|
4281
4345
|
* Class Libvirt::Domain
|
4282
4346
|
*/
|
@@ -5703,6 +5767,10 @@ void ruby_libvirt_domain_init(void)
|
|
5703
5767
|
rb_define_const(c_domain, "QEMU_AGENT_COMMAND_NOWAIT",
|
5704
5768
|
INT2NUM(VIR_DOMAIN_QEMU_AGENT_COMMAND_NOWAIT));
|
5705
5769
|
#endif
|
5770
|
+
#if HAVE_CONST_VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN
|
5771
|
+
rb_define_const(c_domain, "QEMU_AGENT_COMMAND_SHUTDOWN",
|
5772
|
+
INT2NUM(VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN));
|
5773
|
+
#endif
|
5706
5774
|
#if HAVE_CONST_VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT
|
5707
5775
|
rb_define_const(c_domain, "QEMU_MONITOR_COMMAND_DEFAULT",
|
5708
5776
|
INT2NUM(VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT));
|
@@ -5822,4 +5890,17 @@ void ruby_libvirt_domain_init(void)
|
|
5822
5890
|
#if HAVE_VIRDOMAINGETFSINFO
|
5823
5891
|
rb_define_method(c_domain, "fs_info", libvirt_domain_fs_info, -1);
|
5824
5892
|
#endif
|
5893
|
+
#if HAVE_VIRDOMAINRENAME
|
5894
|
+
rb_define_method(c_domain, "rename", libvirt_domain_rename, -1);
|
5895
|
+
#endif
|
5896
|
+
#if HAVE_VIRDOMAINSETUSERPASSWORD
|
5897
|
+
rb_define_method(c_domain, "user_password=", libvirt_domain_user_password_equal, 1);
|
5898
|
+
#endif
|
5899
|
+
#if HAVE_CONST_VIR_DOMAIN_PASSWORD_ENCRYPTED
|
5900
|
+
rb_define_const(c_domain, "PASSWORD_ENCRYPTED",
|
5901
|
+
INT2NUM(VIR_DOMAIN_PASSWORD_ENCRYPTED));
|
5902
|
+
#endif
|
5903
|
+
#if HAVE_CONST_VIR_DOMAIN_TIME_SYNC
|
5904
|
+
rb_define_const(c_domain, "TIME_SYNC", INT2NUM(VIR_DOMAIN_TIME_SYNC));
|
5905
|
+
#endif
|
5825
5906
|
}
|