summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.0.84.1.0.84Richard Jones2010-02-126-2262/+2326
|
* daemon: Don't need to prefix error messages with the command name.Richard Jones2010-02-1242-114/+117
| | | | | | | | | | | | | | | | | | | | The RPC stubs already prefix the command name to error messages. The daemon doesn't have to do this. As a (small) benefit this also makes the daemon slightly smaller. Code in the daemon such as: if (argv[0] == NULL) { reply_with_error ("passed an empty list"); return NULL; } now results in error messages like this: ><fs> command "" libguestfs: error: command: passed an empty list (whereas previously you would have seen ..command: command:..)
* generator: Don't prefix error messages with command name.Richard Jones2010-02-121-11/+10
| | | | | | | The command name is already being added by the RPC stubs, so adding it again in Perl and C# just results in doubled error messages like: foo: foo: the error
* Sys::Guestfs::Lib::open_guest: Add interface parameter.Richard Jones2010-02-121-2/+15
| | | | This allows you to override the default QEMU block device emulation.
* Sys::Guestfs::Lib::open_guest: Remove freeform parameters.Richard Jones2010-02-121-6/+9
| | | | | | | | | Remove the ability to pass freeform parameters to Sys::Virt->new. We don't use it, it makes the code more complex to modify, and indeed there are no other args that Sys::Virt->new supports so this would never be used. Also change $readwrite to $rw to match parameter name.
* New APIs: add-drive{,-ro}-with-if allows you to set QEMU block emulation.Richard Jones2010-02-122-5/+44
| | | | | | | | | | | The default if=... comes from configure time (currently it defaults to if=virtio). This change allows you to set the QEMU block emulation. We don't think this will be used very often, but virt-v2v requires it in order to work around a subtle problem with running 'mkinitrd' in an appliance attached to a guest.
* generator: 'interface' is a reserved word in Java.Richard Jones2010-02-121-0/+1
|
* add_cdrom: Update docs for adding ISO images.Richard Jones2010-02-121-2/+16
| | | | See also RHBZ#563450 (NB: This commit does not fix the bug).
* Use mount-options instead of mount to avoid implicit -o sync.Richard Jones2010-02-1011-32/+47
| | | | | | | | | | | | | | | guestfs_mount adds -o sync implicitly. This causes a very large performance problem for write-intensive programs (eg. virt-v2v). Document this as a "gotcha". Change the tests, guestfish, Sys::Guestfs::Lib, guestmount to use mount-options instead. (Note that this gotcha does not affect mount-ro). The source of the performance problem was first identified by Matthew Booth.
* Add -enable-kvm option to qemu command line.Richard Jones2010-02-091-0/+31
| | | | | | | | If the version of qemu being used supports -enable-kvm option, then check if /dev/kvm is openable and add this option. I have found this option makes no difference, although it is *supposed* to enable KVM (hardware virtualization) support.
* New API call: initrd-cat to list a file from an initrd.Richard Jones2010-02-093-1/+139
|
* Remove invalid Plural-Forms header from ml.po.Richard Jones2010-02-081-1/+0
|
* Documentation: Added a section on libguestfs gotchas.Richard Jones2010-02-081-0/+55
|
* Make virtio block driver be the default for the appliance.Richard Jones2010-02-081-4/+4
| | | | | | Previously this caused a serious performance regression, but we believe this is now fixed: https://bugzilla.redhat.com/show_bug.cgi?id=509383
* Added Malayalam translations (RHBZ#562710).Ani Peter2010-02-081-0/+2043
|
* Distribute hivexsh.1.html HTML file.Richard Jones2010-02-051-0/+1
|
* Update PO files.1.0.83Richard Jones2010-02-053-39/+135
|
* RHEL5: Keep old automake happy by defining docdirRichard W.M. Jones2010-02-051-0/+1
|
* Add scripts to EXTRA_DIST.Richard Jones2010-02-051-2/+14
|
* Update PO files.Richard Jones2010-02-052-27/+91
|
* Prepare for version 1.0.83.Richard Jones2010-02-051-1/+1
|
* Add files to EXTRA_DIST.Richard Jones2010-02-051-1/+2
|
* hivex: example6: Don't double backslashes.Richard Jones2010-02-051-1/+1
|
* hivex: example6: Hypothetical addition of keys for viostor.Richard Jones2010-02-051-0/+126
|
* hivex: Fix handling of inline VKs.Richard Jones2010-02-052-31/+35
|
* hivexsh: Set correct type for 'expandstring' values.Richard Jones2010-02-051-1/+1
|
* hivex: Documentation and cleanups.Richard Jones2010-02-051-1/+2
|
* hivex: Make limits into macros.Richard Jones2010-02-052-5/+13
|
* hivexsh: Remove unused variable.Richard Jones2010-02-051-1/+0
| | | | | This removes an unused variable left over by commit ab608f3948d903af64e814b2e67949a1a71d93a4.
* hivex: Complete the implementation of adding child nodes.Richard Jones2010-02-055-12/+378
|
* hivex: More debugging around nk 'unknown2' field.Richard Jones2010-02-041-10/+26
|
* hivex: Check hash fields in lf/lh records.Richard Jones2010-02-041-20/+61
|
* hivexsh: del command: Fix error message.Richard Jones2010-02-041-1/+1
|
* hivexsh: lsval: Remove stray quotation mark.Richard Jones2010-02-041-1/+1
|
* hivexsh: cd command: fix error handlingRichard Jones2010-02-041-2/+6
| | | | | The error behaviour of hivex_node_get_child is subtle, so the 'cd' command wouldn't always report errors correctly. This fixes it.
* hivex: allocate_block should update valid block bitmap.Richard Jones2010-02-041-0/+2
| | | | | | The internal allocate_block() function wasn't updating the bitmap, so if you revisited a block which you had allocated in the same session, you could get an EFAULT error.
* hivex: More debug messages.Richard Jones2010-02-041-1/+10
|
* hivex: Documentation update.Richard Jones2010-02-041-1/+1
| | | | | ntreg_lf_record can have id "lf" (old-style hashes) or "lh" (new- style hashes).
* hivex: Some missing le32toh endianness conversions.Richard Jones2010-02-041-2/+2
|
* hivexsh: Document some peculiarities of the "cd" command.Richard Jones2010-02-041-1/+8
|
* hivex: Implement deleting child nodes.Richard Jones2010-02-046-0/+317
|
* hivex: Add flags argument to internal get_children() function.Richard Jones2010-02-041-14/+21
| | | | | | | | | When we later call get_children to visit the intermediate ri/lf/lh records, we have already deleted the subkey nk-records, so checking that those nk-records are still valid is not very helpful. This commit adds a flag to turn these checks off.
* hivex: Don't die on valid registries which have bad declared data lengths.Richard Jones2010-02-041-5/+8
| | | | | | | | | | | Some apparently valid registries contain value data length declarations which exceed the allocated block size for the value. Previously the code would return EFAULT for such registries. However since these appear to be otherwise valid registries, turn this into a warning and just use the allocated block size as the data length (in other words, truncate the value).
* hivex: Minimal registry example.Richard Jones2010-02-045-1/+29
| | | | | This is the smallest registry you can make and still have it load correctly in Windows regedit.
* hivexsh: Add 'setval' and 'commit' commands.Richard Jones2010-02-046-4/+491
| | | | | | This adds the 'setval' and 'commit' commands to the hivex shell. Also adds some example scripts showing use of these.
* hivex: Begin implementation of writing to hives.Richard Jones2010-02-043-0/+521
| | | | | | | | | This implements hivex_node_set_values which is used to delete the (key, value) pairs at a node and optionally replace them with a new set. This also implements hivex_commit which is used to commit changes to hives back to disk.
* hivex: Add HIVEX_OPEN_WRITE flag to allow hive to be opened for writing.Richard Jones2010-02-046-22/+53
| | | | | | | | | | | | | | | If this flag is omitted (as in the case for all existing callers) then the hive is still opened read-only. We add a 'writable' flag to the hive handle, and we change the way that the hive file (data) is stored. The data is still mmapped if the file is opened read-only, since that is more efficient and allows us to handle larger hives. However if we need to write to the file then we have to read it all into memory, since if we had to extend the file we need to realloc that data. Note the manpage section L</WRITING TO HIVE FILES> comes in a later commit.
* Tools for analyzing and reverse engineering hive files.Richard Jones2010-02-0412-0/+1629
| | | | | | | | | | | | | | This commit is not of general interest. It contains the tools which I used to reverse engineer the hive format and to test changes. Keeping these with the rest of the code is useful in case in future we encounter a hive file that we fail to modify. Note that the tools are not compiled by default. You have to compile each explicitly with: make -C hivex/tools <toolname>.opt You will also need ocaml-extlib-devel and ocaml-bitstring-devel.
* hivexsh: Change some exit(1) -> exit(EXIT_FAILURE)Richard Jones2010-02-041-2/+2
|
* hivexsh: Only print final \n when interactive.Richard Jones2010-02-041-1/+2
| | | | | | When hivexsh was called non-interactively, it would print an annoying extra line. Only print this line if we are being used interactively.