search for: initnone

Displaying 20 results from an estimated 31 matches for "initnone".

2017 Jan 19
2
[PATCH 1/2] canonical_device_name: Don't rewrite /dev/mdX as /dev/sdX (RHBZ#1414682).
The guestfs_canonical_device_name API was rewriting /dev/mdX as /dev/sdX. This is wrong since (eg) /dev/sd0 is not a device name, so if you pass the canonicalized name back to the API it will fail. virt-v2v was one tool doing this. --- src/canonical-name.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/canonical-name.c b/src/canonical-name.c index ae7b468..d72768f 100644 ---
2016 May 20
1
[PATCH] tests: disable UUID change on ext journal_dev
...ml @@ -5349,14 +5349,13 @@ of a filesystem." }; style = RString "uuid", [Device "device"], []; proc_nr = Some 83; deprecated_by = Some "vfs_uuid"; - tests = - (* Regression test for RHBZ#597112. *) - (let uuid = uuidgen () in [ - InitNone, Always, TestResultString ( - [["mke2journal"; "1024"; "/dev/sdc"]; - ["set_e2uuid"; "/dev/sdc"; uuid]; - ["get_e2uuid"; "/dev/sdc"]], uuid), [] - ]); + tests = [ + (* We can't predic...
2012 Feb 23
1
[PATCH v2] Add a flag to make some functions called only at CONFIG state(RHBZ796520)
...s. For more information on states, see L<guestfs(3)>."); - ("set_memsize", (RErr, [Int "memsize"], []), -1, [FishAlias "memsize"], + ("set_memsize", (RErr, [Int "memsize"], []), -1, [FishAlias "memsize"; ConfigOnly], [InitNone, Always, TestOutputInt ( [["set_memsize"; "500"]; ["get_memsize"]], 500)], @@ -451,7 +451,7 @@ features from later versions into earlier versions, making this an unreliable way to test for features. Use C<guestfs_available> instead."); -...
2015 Jan 13
3
[PATCH] mkfs: add 'label' optional argument
...t;]; ["mount"; "/dev/sda1"; "/"]; ["mkdir"; "/mp1"]; ["mount"; "/dev/sda2"; "/mp1"]; @@ -5478,7 +5478,7 @@ the human-readable, canonical hex dump of the file." }; tests = [ InitNone, Always, TestResultString ( [["part_disk"; "/dev/sda"; "mbr"]; - ["mkfs"; "ext3"; "/dev/sda1"; ""; "NOARG"; ""; ""]; + ["mkfs"; "ext3"; "/dev/sda1&qu...
2009 Sep 14
1
[PATCH] Don't enable trace in set_trace test.
...nerator.ml index 50a41c7..179665b 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -778,8 +778,8 @@ For more information on the architecture of libguestfs, see L<guestfs(3)>."); ("set_trace", (RErr, [Bool "trace"]), -1, [FishAlias "trace"], - [InitNone, Always, TestOutputTrue ( - [["set_trace"; "true"]; + [InitNone, Always, TestOutputFalse ( + [["set_trace"; "false"]; ["get_trace"]])], "enable or disable command traces", "\ -- 1.6.2.5
2014 Aug 18
2
[PATCH] daemon: echo-daemon: do not crash on empty string
...#39;\0'; diff --git a/generator/actions.ml b/generator/actions.ml index 9570d9b..bb95f7a 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -7210,7 +7210,9 @@ was built (see C<appliance/kmod.whitelist.in> in the source)." }; proc_nr = Some 195; tests = [ InitNone, Always, TestResultString ( - [["echo_daemon"; "This is a test"]], "This is a test"), [] + [["echo_daemon"; "This is a test"]], "This is a test"), []; + InitNone, Always, TestResultString ( + [["echo_daemon&q...
2015 Nov 05
4
[PATCH 1/2] actions: turn available & feature_available as non-daemon
...2 @@ C<guestfs_get_identifier>." }; longdesc = "\ Get the handle identifier. See C<guestfs_set_identifier>." }; + { defaults with + name = "available"; added = (1, 0, 80); + style = RErr, [StringList "groups"], []; + tests = [ + InitNone, Always, TestRun [["available"; ""]], [] + ]; + shortdesc = "test availability of some parts of the API"; + longdesc = "\ +This command is used to check the availability of some +groups of functionality in the appliance, which not all builds of +the libgu...
2009 Sep 11
2
[PATCH] Add echo_daemon command
...95,13 @@ This loads a kernel module in the appliance. The kernel module must have been whitelisted when libguestfs was built (see C<appliance/kmod.whitelist.in> in the source)."); + ("echo_daemon", (RString "output", [StringList "words"]), 195, [], + [InitNone, Always, TestRun [["echo_daemon"; "\"This is a test\""]]], + "echo arguments back to the client", + "\ +This commands works much like the unix echo command. It returns its arguments as +a string."); + ] let all_functions = non_daemon_functio...
2010 Jul 05
5
[PATCH 0/3] RFC: Allow use of external QEMU process with libguestfs
This attempts to implement the idea proposed in https://www.redhat.com/archives/libguestfs/2010-April/msg00087.html The idea is that an externally managed QEMU (manual, or via libvirt) can boot the appliance kernel/initrd. libguestfs can then be just told of the UNIX domain socket associated with the guest daemon. An example based on guestfish. 1. Step one, find the appliance kernel/initrd
2009 Aug 18
1
[PATCH] guestfs_modprobe: explicitly load a kernel module in the appliance
...erator.ml index cc97dd5..41a78fe 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3560,6 +3560,13 @@ an external journal on the journal with UUID C<uuid>. See also C<guestfs_mke2journal_U>."); + ("modprobe", (RErr, [String "module"]), 194, [], + [InitNone, Always, TestRun [["modprobe"; "ext2"]]], + "load a kernel module", + "\ +This loads a kernel module in the appliance. The kernel module must be available +in the appliance."); + ] let all_functions = non_daemon_functions @ daemon_functions -- 1.6.2....
2009 Aug 19
1
[PATCH libguestfs] avoid build failure due to Haskell keyword clash
..."\ @@ -3560,7 +3560,7 @@ an external journal on the journal with UUID C<uuid>. See also C<guestfs_mke2journal_U>."); - ("modprobe", (RErr, [String "module"]), 194, [], + ("modprobe", (RErr, [String "modulename"]), 194, [], [InitNone, Always, TestRun [["modprobe"; "ext2"]]], "load a kernel module", "\ @@ -4050,7 +4050,35 @@ let check_functions () = if n = "i" || n = "n" then failwithf "%s has a param/ret called 'i' or 'n', wh...
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.
2017 May 04
4
[PATCH 0/3] generator: Allow returned strings to be annotated as devices.
If we want to permit more than 255 drives to be added, then we will have to add the disks to the same virtio-scsi target using different unit (LUN) numbers. Unfortunately SCSI LUN enumeration in the Linux is not deterministic (eg. two disks with target=0, lun=[0,1] can be enumerated as /dev/sda or /dev/sdb randomly). Dealing with that will require some very complex device name translation on the
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2015 Oct 07
2
[PATCH 0/2] New APIs: set-identifier, get-identifier
This is very useful for debugging multithreaded programs. Rich.
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...bprocess launches (no op)"; longdesc = "\ @@ -434,6 +435,7 @@ This returns the verbose messages flag." }; { defaults with name = "is_ready"; style = RBool "ready", [], []; + visibility = VStateTest; blocking = false; tests = [ InitNone, Always, TestOutputTrue ( @@ -464,6 +466,7 @@ For more information on states, see L<guestfs(3)>." }; { defaults with name = "is_launching"; style = RBool "launching", [], []; + visibility = VStateTest; blocking = false; tests = [ InitN...
2009 Sep 09
2
[PATCH] Add command trace functionality
...rator.ml @@ -805,6 +805,32 @@ is passed to the appliance at boot time. See C<guestfs_set_selinux>. For more information on the architecture of libguestfs, see L<guestfs(3)>."); + ("set_trace", (RErr, [Bool "trace"]), -1, [FishAlias "trace"], + [InitNone, Always, TestOutputTrue ( + [["set_trace"; "true"]; + ["get_trace"]])], + "enable or disable command traces", + "\ +If the command trace flag is set to 1, then commands are +printed on stdout before they are executed in a format +which is...
2012 Mar 09
5
[PATCH 0/5] Fixes to resize2fs (RHBZ#755729, RHBZ#801640)
https://bugzilla.redhat.com/show_bug.cgi?id=755729 This bug reports that the error message printed by the resize2fs API calls (which comes directly from the resize2fs command) says: Please run 'e2fsck -f /dev/vda1' first. That command is not possible from guestfish (where it would be 'e2fsck-f' or 'e2fsck ... forceall:true'). Fixing that bug caused this bug:
2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...at the same time as the handle is created." }; name = "get_qemu"; added = (1, 0, 6); style = RConstString "hv", [], []; blocking = false; - deprecated_by = Some "get_hv"; + deprecated_by = Replaced_by "get_hv"; tests = [ InitNone, Always, TestRun ( [["get_qemu"]]), [] @@ -72,7 +72,7 @@ return the default qemu binary name." }; style = RErr, [Bool "selinux"], []; fish_alias = ["selinux"]; config_only = true; blocking = false; - deprecated_by = Some "selinux_re...
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...this topic." }; { defaults with name = "canonical_device_name"; added = (1, 19, 7); - style = RString "canonical", [String "device"], []; + style = RString "canonical", [String (PlainString, "device")], []; tests = [ InitNone, Always, TestResultString ( [["canonical_device_name"; "/dev/hda"]], "/dev/sda"), []; @@ -969,7 +969,7 @@ but note that any errors are ignored in that case." }; { defaults with name = "cat"; added = (0, 0, 4); - style = RString &quo...