summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix regressions/rhbz557655.sh when debugging is enabled (v2).Richard Jones2010-01-294-14/+24
| | | | | | | | The previous fix didn't cope with ordinary warnings emitted by qemu (eg. "open /dev/kvm: No such file or directory"). This is a hopefully more complete fix for the problem. See also commit 3cd7ce75f1ce5048a4d9f6aeaf66aff3194e1096.
* Fix regressions/rhbz557655.sh when debugging is enabled.Richard Jones2010-01-281-0/+1
| | | | | | | | | | | | The regression test for RHBZ#557655 would fail if debugging was enabled, because debug output would get mixed up with the test output. To reproduce the error do: LIBGUESTFS_DEBUG=1 make -C regressions TESTS=rhbz557655.sh check This commit disables debug for just this test.
* Implement 'vgrename' and 'lvrename' APIs.Richard Jones2010-01-283-1/+65
|
* Version 1.0.82.1.0.82Richard Jones2010-01-286-401/+451
|
* hivex: Const-correctness fix on header_checksum (thanks Jim Meyering).Richard Jones2010-01-281-1/+1
|
* hivex: Update some previously unknown nk-record fields.Richard Jones2010-01-281-5/+11
| | | | | | Update these fields with what we found out from reverse engineering the file. Also bring the unknownX field names into line with visualizer.ml.
* hivex: Fix calculation of block size for vk data blocks.Richard Jones2010-01-281-1/+1
|
* hivex: Display incorrect block size as unsigned in an error message.Richard Jones2010-01-281-1/+1
|
* hivex: display bad block offset in hexRichard Jones2010-01-281-1/+1
|
* hivex: hive type in vk-record is an unsigned 32 bit intRichard Jones2010-01-281-1/+1
|
* hivex: Add missing le32toh conversion around field access.Richard Jones2010-01-281-3/+3
| | | | | This was missing. It only worked because we test on a little endian platform.
* hivex: Clarify some more fields.Richard Jones2010-01-281-2/+3
| | | | Taken from sentinelchicken.com documentation.
* hivex: Modify children/values functions to return intermediate blocks.Richard Jones2010-01-281-70/+168
| | | | | | | | | | | Modify the functions that return child subnodes and values so they can also be used to return a list of the intermediate blocks. This is so we can delete those intermediate blocks (in a later commit). We also introduce an offset_list structure which is used for collecting lists of offsets, ie. lists of nodes, values or blocks. Note that this commit should not change the semantics of the code.
* hivex: Add value_any callback to the visitor.Richard Jones2010-01-283-83/+101
| | | | | | | | | | The visitor currently contains lots of value_* callbacks, such as value_string which is called back when the value has type string. This is fine but it makes it complicated to deal with the case where you just want to see 'a value', and don't care about its type. The value_any callback allows visitors to see values generically.
* hivex: Move header checksum code into a function.Richard Jones2010-01-281-8/+16
| | | | This function can be reused later.
* hivex: page 'offset_next' field is really 'page_size'.Richard Jones2010-01-281-8/+8
| | | | | | | | The documentation, as usual, is contradictory. However this field is definitely the page size in all observed registries. Furthermore the following field marked 'unknown' is always zero, although this contradicts what the sentinelchicken.com paper says.
* hivex: Collect more statistics about registries.Richard Jones2010-01-281-20/+31
|
* hivex: Store filename in hive handle.Richard Jones2010-01-281-0/+7
|
* Added Oriya translations (RHBZ#559498).Richard Jones2010-01-281-0/+2005
| | | | Translation by Manoj Kumar Giri.
* supermin: Add special case for libgcc_s-*.so.NRichard Jones2010-01-281-0/+4
| | | | | | Because this file contains the GCC version and a date, it frequently changes on the host. Create a special case so that this file is matched using a wildcard for the version/date part of the name.
* Added translations for Punjabi (pa-IN) (RHBZ#559480).Richard Jones2010-01-284-66/+1928
| | | | | | Translated by Jaswinder Singh. Also updated pot files.
* supermin: Prevent multilib corruption (RHBZ#558593).Richard Jones2010-01-274-13/+40
| | | | | | | | | | | | | | | | | | | On some combination of installing, upgrading and removing the base libguestfs package on x86_64, multilib can corrupt libguestfs by leaving a copy of /usr/bin/libguestfs-supermin-helper around which references the wrong architecture (usually, contains links to the i386-based appliance, when the x86_64 appliance should be constructed). This commit changes libguestfs-supermin-helper so that the script is the same on all architectures. Instead, the library passes the differences to the script (eg. $host_cpu). Because the i386 and x86_64 libraries should be at different locations (/usr/lib vs /usr/lib64) this should prevent multilib from screwing things up. Related links: https://bugzilla.redhat.com/show_bug.cgi?id=558593 http://rwmj.wordpress.com/2009/11/16/please-someone-shoot-multilib/#content https://bugzilla.redhat.com/show_bug.cgi?id=235752
* Added Telugu translations (RHBZ#559237).Richard Jones2010-01-273-722/+2847
| | | | Also ran 'make -C po update-po' to update the POT file.
* supermin: Ignore more unreadable files found on RHEL 6.Richard Jones2010-01-251-0/+17
|
* Sync to latest Gnulib.Richard Jones2010-01-251-0/+0
|
* guestfish: Use xstrtol to parse integers (RHBZ#557655).Richard Jones2010-01-258-5/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current code uses atoi to parse the generator Int type and atoll to parse the generator Int64 type. The problem with the ato* functions is that they don't cope with errors very well, and they cannot parse numbers that begin with 0.. or 0x.. for octal and hexadecimal respectively. This replaces the atoi call with a call to Gnulib xstrtol and the atoll call with a call to Gnulib xstrtoll. The generated code looks like this for all Int arguments: { strtol_error xerr; long r; xerr = xstrtol (argv[0], NULL, 0, &r, ""); if (xerr != LONGINT_OK) { fprintf (stderr, _("%s: %s: invalid integer parameter (%s returned %d)\n"), cmd, "memsize", "xstrtol", xerr); return -1; } /* The Int type in the generator is a signed 31 bit int. */ if (r < (-(2LL<<30)) || r > ((2LL<<30)-1)) { fprintf (stderr, _("%s: %s: integer out of range\n"), cmd, "memsize"); return -1; } /* The check above should ensure this assignment does not overflow. */ memsize = r; } and like this for all Int64 arguments (note we don't need the range check for these): { strtol_error xerr; long long r; xerr = xstrtoll (argv[1], NULL, 0, &r, ""); if (xerr != LONGINT_OK) { fprintf (stderr, _("%s: %s: invalid integer parameter (%s returned %d)\n"), cmd, "size", "xstrtoll", xerr); return -1; } size = r; } Note this also fixes an unrelated bug in guestfish handling of RBufferOut. We were using 'fwrite' without checking the return value, and this could have caused silent failures, eg. in the case where there was not enough disk space to store the resulting file, or even if the program was interrupted (but continued) during the write. Replace this with Gnulib 'full-write', and check the return value and report errors.
* Add 'filesize' call.Richard Jones2010-01-253-1/+31
| | | | | Returns the size of a file. You can already do this with 'stat', but this call is good for scripting.
* Missing crc kernel module on RHEL 6 / Linux 2.6.32 (fixes RHBZ#557195)Richard Jones2010-01-211-2/+3
|
* hivex: Various improvements in header parsing, thanks to better documentation.Richard Jones2010-01-151-22/+74
|
* hivex: Print header fields. Print all offsets in hex (in debug output).Richard Jones2010-01-151-16/+26
|
* hivex: Reenable checksum calculations, but don't check result.Richard Jones2010-01-151-3/+4
|
* hivex: Update documentation.Richard Jones2010-01-151-0/+4
|
* hivex: Send all debug messages to stderr.Richard Jones2010-01-141-55/+55
|
* hivex: Remove stray debugging message.Richard Jones2010-01-141-1/+0
|
* hivex: Documentation: Add environment variables section.Richard Jones2010-01-141-0/+11
|
* hivex: Whitespace change.Richard Jones2010-01-141-1/+1
|
* hivex: Move STR* macros into C file.Richard Jones2010-01-142-10/+10
| | | | Don't pollute the public header file with these macros.
* hivex: Small updates to the documentation.Richard Jones2010-01-142-8/+92
|
* Fix generation of HTML documentation for website.Richard Jones2010-01-131-4/+4
|
* Add guestfs.pod and guestfish.pod to EXTRA_DIST.1.0.81Richard Jones2010-01-132-2/+4
|
* Prepare for version 1.0.81.Richard Jones2010-01-133-654/+654
|
* Update to latest Gnulib.Richard Jones2010-01-134-2/+9
|
* qemu: Upstream regression of -stdio serial option.Richard Jones2010-01-071-4/+17
| | | | | | | | | | | | | Best explained by the comment in the code: /* Newer versions of qemu (from around 2009/12) changed the * behaviour of monitors so that an implicit '-monitor stdio' is * assumed if we are in -nographic mode and there is no other * -monitor option. Only a single stdio device is allowed, so * this broke the '-serial stdio' option. There is a new flag * called -nodefaults which gets rid of all this default crud, so * let's use that to avoid this and any future surprises. */
* inspector: Update example XML and RNG schema.Richard Jones2010-01-063-4411/+13948
| | | | This updates commit a59dcdbd1b0a28c960e3792165a13f2daf4f6c35.
* inspector: Make RPM application data more specific (RHBZ#552718).Richard Jones2010-01-052-1/+4
| | | | | | | List applications with epoch, release and arch data. If epoch is 0, don't store this as an empty string, but as undefined, and don't output empty <epoch/> element in the XML.
* Use linker script to control visibility of symbols.Richard Jones2010-01-044-3/+60
|
* generator: Move all library generation code together.Richard Jones2010-01-041-1/+1
|
* generator: Print total lines of generated code.Richard Jones2010-01-041-2/+18
|
* C#: Add documentation about experimental nature of these bindings.Richard Jones2010-01-043-5/+40
|
* Experimental C# bindings.Richard Jones2010-01-024-7/+224
| | | | Tested in only limited situations, with Mono on Linux.