X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=generator%2Fgenerator_actions.ml;h=dff84801f028677b57bf85890b435cdedb2369a9;hp=fe40fbf827958e20144e861afe25c5e237f86dbe;hb=c11a92751e003b3d4bc3584b598afc9bd9d9e703;hpb=47963bc9cc0b47af0541010a4fa14260405acaa5 diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index fe40fbf..dff8480 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -6432,6 +6432,64 @@ To get the current values of filesystem parameters, see C. For precise details of how tune2fs works, see the L man page."); + ("mdadm_create", (RErr, [String "name"; DeviceList "devices"], [Int64 "missingbitmap"; Int "nrdevices"; Int "spare"; Int64 "chunk"; String "level"]), 299, [Optional "mdadm"], + [], + "create a Linux md (RAID) device", + "\ +Create a Linux md (RAID) device named C on the devices +in the list C. + +The optional parameters are: + +=over 4 + +=item C + +A bitmap of missing devices. If a bit is set it means that a +missing device is added to the array. The least significant bit +corresponds to the first device in the array. + +As examples: + +If C and C then +the resulting array would be C<[EmissingE, \"/dev/sda\"]>. + +If C and C then +the resulting array would be C<[\"/dev/sda\", EmissingE]>. + +This defaults to C<0> (no missing devices). + +The length of C + the number of bits set in +C must equal C + C. + +=item C + +The number of active RAID devices. + +If not set, this defaults to the length of C plus +the number of bits set in C. + +=item C + +The number of spare devices. + +If not set, this defaults to C<0>. + +=item C + +The chunk size in bytes. + +=item C + +The RAID level, which can be one of: +I, I, I<0>, I, I, I<1>, I, +I, I<4>, I, I<5>, I, I<6>, I, I<10>. +Some of these are synonymous, and more levels may be added in future. + +If not set, this defaults to C. + +=back"); + ] let all_functions = non_daemon_functions @ daemon_functions