summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.9.15.1.9.15Richard W.M. Jones2011-04-0117-1181/+1340
|
* fish: Fix incorrect path passed to perror.Richard W.M. Jones2011-04-011-1/+1
| | | | Fix commit b8e1dee73a1deef1bfd5937e2abfbe9afef7b1ef.
* Add libguestfs-tools.conf file to EXTRA_DIST.Richard W.M. Jones2011-04-011-0/+1
|
* examples: Add virt-dhcp-address program.Richard W.M. Jones2011-03-314-0/+356
| | | | | | This is like the mythical 'virt-ifconfig'. There is not enough certainty around the right way to be doing this for us to make a full virt tool for this. Therefore the code is just an example.
* examples: Use WARN_CFLAGS, WERROR_CFLAGS macros instead of -WallRichard W.M. Jones2011-03-311-5/+11
|
* examples: size_t-correctness change in inspect_vm.cRichard W.M. Jones2011-03-311-2/+2
|
* contrib: Fix URLs in README file.Richard W.M. Jones2011-03-311-3/+5
|
* inspect: Detect 32 bit applications running on WOW64 emulator (RHBZ#692545).Richard W.M. Jones2011-03-314-42/+79
| | | | | | | These applications are located along a different Registry path. See http://support.microsoft.com/kb/896459 for all the details. Thanks Jinxin Zheng for finding the bug and the solution.
* Add /etc/libguestfs-tools.conf configuration file.Richard W.M. Jones2011-03-3118-30/+295
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* rescue: Add -w|--rw option.Richard W.M. Jones2011-03-302-0/+13
|
* fuse: Document -w flag in --help output.Richard W.M. Jones2011-03-301-0/+1
|
* Exclude po-docs directory completely if po4a not available.Richard W.M. Jones2011-03-293-19/+5
| | | | | | Lift the if HAVE_PO4A ... endif completely out of the po-docs subdirectory, and just exclude the whole subdirectory if the po4a program is not available.
* tests: Don't fail when compiled without support for NTFS.Richard W.M. Jones2011-03-292-12/+58
|
* perl: Canonicalize /dev/vd* paths in old inspection code (RHBZ#691724).Richard W.M. Jones2011-03-291-0/+3
|
* README: Note that getfacl, getfattr are optional dependencies.Richard W.M. Jones2011-03-281-0/+2
|
* Version 1.9.14.1.9.14Richard W.M. Jones2011-03-2817-4759/+4799
|
* fuse: Fix getxattr, listxattr calls and add a regression test (RHBZ#691389).Richard W.M. Jones2011-03-284-20/+83
| | | | | | | | | | | | | | | | | The documentation for the getxattr and listxattr calls is not very clear and as a result we were always returning something different from that which the Linux kernel would usually return. This fixes these calls, at least far enough that both the 'getfattr' and 'getfacl' programs now work fine on FUSE-mounted filesystems. Note that SELinux attrs are *not* passed through. This appears to be a known bug between SELinux and FUSE. For more information see: http://www.spinics.net/lists/selinux/msg09460.html Notes: Labels: bugfix, RHBZ#691389
* fish: fuse: Add -m dev:mnt:opts to allow mount options to be specified.Richard W.M. Jones2011-03-285-12/+49
| | | | | | | | | | | | | This lets you turn on ACLs and xattrs by doing: -m /dev/sda1:/:acl,user_xattr The extra parameter is passed through to mount_options: libguestfs: trace: mount_options "acl,user_xattr" "/dev/sda1" "/" Notes: Labels: feature
* roadmap: Move QMP to 'beyond 1.10'.Richard W.M. Jones2011-03-281-5/+8
| | | | See: https://www.redhat.com/archives/libguestfs/2011-March/msg00124.html
* Open release notes for version 1.10.0.Richard W.M. Jones2011-03-281-0/+98
|
* ruby: Don't segfault if callbacks throw exceptions (RHBZ#664558).Richard W.M. Jones2011-03-282-5/+92
| | | | | | | | | | | (Thanks Chris Lalancette). See: https://bugzilla.redhat.com/show_bug.cgi?id=664558#c6 Notes: Labels: bugfix, RHBZ#664558 Depends: 6a64114929a0b098f5a1e31e17e7802127925007
* RHEL 5: Use mke4fs on RHEL 5 as replacement for mke2fs.Richard W.M. Jones2011-03-253-3/+10
| | | | | Notes: Labels: cleanup, forcestable Depends: 227bea6c7ef89b707fe2c01c4d0d0fb9081e8c04
* mkfs: Force mke2fs to create a filesystem even on raw IDE device (RHBZ#690819).Richard W.M. Jones2011-03-253-3/+57
| | | | Notes: Labels: bugfix, RHBZ#690819
* Rename $tmpdir/sock to $tmpdir/guestfsd.sock.Richard W.M. Jones2011-03-252-6/+6
| | | | | | | | No functional change; this simply makes the purpose of the socket clearer. Notes: Labels: cleanup
* inspector: Add detection of Slackware.Richard W.M. Jones2011-03-253-0/+17
| | | | Notes: Labels: feature
* Version 1.9.13.1.9.13Richard W.M. Jones2011-03-2417-11327/+11555
|
* New API: guestfs_inspect_get_product_variantRichard W.M. Jones2011-03-239-3/+71
| | | | | | | | | | This returns a product variant for inspected operating systems. In practice this is a useful way to distinguish between consumer and enterprise/server versions of Windows that otherwise have the same version number. Notes: Labels: feature
* fish: Add better quick help to --help output.Richard W.M. Jones2011-03-221-10/+10
| | | | | Notes: Labels: cleanup Depends: c8faa5d0b0a17689d27bd33bc787ba0fe9a3f076
* fish: Add -w|--rw option to --help output.Richard W.M. Jones2011-03-221-1/+2
| | | | Notes: Labels: bugfix
* inspect: Don't fail for Windows guests with multiple disks (RHBZ#674130).Richard W.M. Jones2011-03-222-2/+15
| | | | | Notes: Labels: bugfix, RHBZ#674130 Depends: 5776c145d411e5ae00072ecf422055f3d0bd29e2
* inspect: Simplify Windows root heuristic code.Richard W.M. Jones2011-03-221-12/+38
| | | | | | | | | Add special is_file_nocase and is_dir_nocase functions and remove the duplicate checks for files and directories with different cases. Notes: Labels: codemotion
* umount-all: Use /proc/mounts instead of output of 'mount' command.Richard W.M. Jones2011-03-221-34/+24
| | | | | | | | | | The particular issue is that ntfs-3g (or FUSE?) no longer appears to update /etc/mtab, which meant that umount-all was not unmounting these partitions. But parsing /proc/mounts is simpler and more robust in any case. Notes: Labels: bugfix
* guestfs(3): 'kernel' -> 'supermin appliance'.Richard W.M. Jones2011-03-191-4/+4
|
* guestfs(3): Indent line to keep code together.Richard W.M. Jones2011-03-191-1/+1
|
* todo: Add ntfsck.Richard W.M. Jones2011-03-191-0/+2
|
* fish: Add all stamp-*.pod files to CLEANFILES.Richard W.M. Jones2011-03-181-1/+6
|
* Version 1.9.12.1.9.12Richard W.M. Jones2011-03-1816-248/+248
|
* proto: Fix both-ends-cancel case.Richard W.M. Jones2011-03-189-13/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case where both ends cancel at the same time (eg. both ends realize there are errors before or during the transfer), previously we skipped sending back an error from the daemon, on the spurious basis that the library would not need it (the library is cancelling because of its own error). However this is wrong: we should always send back an error message from the daemon in order to preserve synchronization of the protocol. A simple test case is: $ guestfish -N fs -m /dev/sda1 upload nosuchfile / libguestfs: error: open: nosuchfile: No such file or directory libguestfs: error: unexpected procedure number (66/282) (Notice two things: there are errors at both ends, and the loss of synchronization). After applying this commit, the loss of synchronization does not occur and we just see the library error: $ guestfish -N fs -m /dev/sda1 upload nosuchfile / libguestfs: error: open: nosuchfile: No such file or directory The choice of displaying the library or the daemon error is fairly arbitrary in this case -- it would be valid to display either or even to combine them into one error. Displaying the library error only makes the code considerably simpler. This commit also (re-)enables a test for this case.
* proto: Fix FileIn ops that abort during the chunk upload stage.Richard W.M. Jones2011-03-1812-48/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a previous, incorrect attempt to fix RHBZ#576879 we tried to prevent the daemon from sending an error reply if the daemon had cancelled the transfer. This is wrong: the daemon should send an error reply in these cases. A simple test case is this: guestfish -N fs -m /dev/sda1 upload big-file / (This fails because the target "/" is a directory, not a file.) Prior to this commit, libguestfs would hang instead of printing an error. With this commit, libguestfs prints an error. What is happening is: (1) Library is uploading a file (2) In the middle of the long upload, daemon detects an error. Daemon cancels. (3) Library detects cancel, sends cancel chunk, then waits for the error reply from the daemon. (4) Daemon is supposed to send an error reply message. Because step (4) wasn't happening, uploads that failed like this would hang in the library (waiting for the error message, while the daemon was waiting for the next request). This also adds a regression test. This temporarily breaks the "both ends cancel" case (RHBZ#576879c5). Therefore the test for that is disabled, and this is fixed in the next patch in the series. This partially reverts commit dc706a639eec16084c0618baf7bfde00c6565f63.
* proto: Don't drop outgoing message when daemon cancels (RHBZ#576879).Richard Jones2011-03-181-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a (potential) fix for the long standing protocol bug which causes loss of synchronization when a FileIn action fails very early on the daemon side. The canonical example would be the 'upload' action failing immediately if no filesystem is mounted. What's supposed to happen is this: (1) library sends request message (2) daemon processes request first chunk of data and sees that it will fail, sends cancellation (3) discards chunks of data (4) library sees daemon cancellation and stops sending chunks It was going wrong in step (1), in guestfs___send_to_daemon. In some (timing related) circumstances, send_to_daemon could receive the cancellation before sending the first chunk, at which point it would exit, *discarding the first chunk*. This causes the daemon to fail in step (3) since it reads the next request as if it was a chunk, thus losing synchronization. (The protocol specifies that you always have to send at least one chunk if there is a FileIn or FileOut parameter). The patch changes guestfs___send_to_daemon so that if it detects cancellation, it sends the remaining data in its output buffer instead of discarding it. (This also fixes another edge case to do with sending partial data although I don't think we ever saw that in practice).
* daemon: Improve protocol debug messages.Richard Jones2011-03-181-18/+26
| | | | | | | | This adds 'guestfsd: ...' prefix before each message, and also puts a message at the top of the main loop just after a new message has been received. The intent is to make it simpler to follow the protocol.
* regressions: Enable both tests for bug 576879 (not fixed).Richard W.M. Jones2011-03-181-2/+2
|
* daemon: Print error for invalid chunk.cancel field.Richard W.M. Jones2011-03-181-0/+7
| | | | | | | The chunk.cancel field should always be [0|1]. If it is not then something has gone badly wrong -- probably loss of synchronization. If this occurs print a debug message and return error from receive_file function.
* proto: Improve debug messages.Richard W.M. Jones2011-03-182-10/+60
|
* haskell: Small fixes for ghc 7.Richard W.M. Jones2011-03-182-2/+2
|
* regressions: Rename the file we are uploading too.Richard W.M. Jones2011-03-171-1/+1
| | | | This updates commit cbd8da6d4dd2e4cbc3b87fbc7cb7d6129eb69172.
* regressions: Split the test rhbz576879.sh into two halves.Richard W.M. Jones2011-03-173-20/+36
| | | | | | | We suspect that there are in fact two separate bugs. In any case it makes sense for the two tests to be done separately. Note that these tests still fail.
* tests: Ignore return value from fwrite.Richard W.M. Jones2011-03-162-2/+6
|
* Version 1.9.11.1.9.11Richard W.M. Jones2011-03-1518-3039/+3954
|
* ruby: Missing files from EXTRA_DIST.Richard W.M. Jones2011-03-151-0/+2
|