diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-22 19:15:56 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-23 00:10:37 +0000 |
commit | 22e531bc459309d9a871a845cfacd1396ff5b7e4 (patch) | |
tree | 32ec16f2a1799ec6a667b6b7bf29d751e17697ac /src | |
parent | acdcbac91e9f03333a47204f2a6c52ac03288305 (diff) | |
download | libguestfs-22e531bc459309d9a871a845cfacd1396ff5b7e4.tar.gz libguestfs-22e531bc459309d9a871a845cfacd1396ff5b7e4.tar.xz libguestfs-22e531bc459309d9a871a845cfacd1396ff5b7e4.zip |
Implement 'dd' command.
Diffstat (limited to 'src')
-rw-r--r-- | src/MAX_PROC_NR | 2 | ||||
-rwxr-xr-x | src/generator.ml | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR index a817176f..0ddd619c 100644 --- a/src/MAX_PROC_NR +++ b/src/MAX_PROC_NR @@ -1 +1 @@ -216 +217 diff --git a/src/generator.ml b/src/generator.ml index 1c533fae..a7135a79 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4162,6 +4162,22 @@ See also C<guestfs_version>. =back"); + ("dd", (RErr, [Dev_or_Path "src"; Dev_or_Path "dest"]), 217, [], + [InitBasicFS, Always, TestOutputBuffer ( + [["write_file"; "/src"; "hello, world"; "0"]; + ["dd"; "/src"; "/dest"]; + ["read_file"; "/dest"]], "hello, world")], + "copy from source to destination using dd", + "\ +This command copies from one source device or file C<src> +to another destination device or file C<dest>. Normally you +would use this to copy to or from a device or partition, for +example to duplicate a filesystem. + +If the destination is a device, it must be as large or larger +than the source file or device, otherwise the copy will fail. +This command cannot do partial copies."); + ] let all_functions = non_daemon_functions @ daemon_functions |