Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | New API: md-stat. | Richard W.M. Jones | 2012-03-20 | 6 | -1/+232 | |
| | | | | | This returns information about the underlying devices of an MD (software RAID) device. | |||||
* | generator: Generate a .gitignore file specifically for java structs. | Richard W.M. Jones | 2012-03-20 | 4 | -13/+17 | |
| | ||||||
* | daemon: Set last errno to ENOTSUP when APIs are not available. | Richard W.M. Jones | 2012-03-20 | 1 | -4/+6 | |
| | ||||||
* | daemon: Add reply_with_error_errno function. | Richard W.M. Jones | 2012-03-20 | 2 | -6/+7 | |
| | | | | | | This function allows you to pass an explicit errno back to the library. reply_with_error is redefined as a macro that calls reply_with_error_errno with errno == 0. | |||||
* | inspection: Set last errno to ENOTSUP when inspection APIs are not available. | Richard W.M. Jones | 2012-03-20 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | Previously there was no programmatic way to tell if inspection APIs were unavailable because they are not compiled in (because hivex isn't around). This contrasts with daemon APIs where the availability is covered by the guestfs_available API. Change the inspection APIs so that when they are not available, the last errno is set to ENOTSUP. (Note that ENOTSUP must be defined on all POSIX platforms). This allows programs to detect if they are using a version of libguestfs that was compiled without support for inspection, without having to parse error messages. | |||||
* | todo: Document proposed attach-method fd:N | Richard W.M. Jones | 2012-03-20 | 1 | -0/+20 | |
| | ||||||
* | po-docs: Rename LINGUAS -> linguas (RHBZ#804464). | Richard W.M. Jones | 2012-03-19 | 1 | -4/+5 | |
| | ||||||
* | Make HTML from libguestfs-test-tool man page. | Richard W.M. Jones | 2012-03-17 | 3 | -3/+10 | |
| | ||||||
* | Version 1.17.20.1.17.20 | Richard W.M. Jones | 2012-03-17 | 20 | -10523/+11558 | |
| | ||||||
* | New API: vgmeta: Download volume group metadata. | Richard W.M. Jones | 2012-03-17 | 3 | -1/+99 | |
| | ||||||
* | appliance: Add a tool to make fixed appliances. | Richard W.M. Jones | 2012-03-17 | 7 | -1/+363 | |
| | ||||||
* | ruby: Replace deprecated rdoc/task and rake/gempackagetask. | Richard W.M. Jones | 2012-03-16 | 1 | -3/+3 | |
| | ||||||
* | todo: Suggestion for virt-sysprep. | Richard W.M. Jones | 2012-03-16 | 1 | -0/+1 | |
| | ||||||
* | Version 1.17.19.1.17.19 | Richard W.M. Jones | 2012-03-16 | 20 | -15301/+15987 | |
| | ||||||
* | generator: Sort camel-case structs. | Richard W.M. Jones | 2012-03-16 | 2 | -7/+8 | |
| | ||||||
* | New APIs: isoinfo and isoinfo-device. | Richard W.M. Jones | 2012-03-16 | 8 | -1/+351 | |
| | | | | | Get ISO primary volume descriptor information for either ISO devices or ISO files. | |||||
* | appliance: Include genisoimage in the appliance. | Richard W.M. Jones | 2012-03-16 | 1 | -0/+1 | |
| | | | | | This is mainly useful for the 'isoinfo' tool, but 'genisoimage' itself may be interesting to have in future. | |||||
* | generator: Fix CompareWithString test. | Richard W.M. Jones | 2012-03-16 | 1 | -1/+1 | |
| | | | | | This type of test was not used, and in fact the generated test simply didn't work. | |||||
* | generator: Fix FUInt{32,64} struct field types. | Richard W.M. Jones | 2012-03-16 | 1 | -2/+4 | |
| | | | | | | We were not using an unsigned type in the XDR. This doesn't affect data integrity or the protocol, but it makes it more complicated for the daemon to set these fields. | |||||
* | daemon: Don't call reply_with_* after split_lines fails. | Richard W.M. Jones | 2012-03-16 | 2 | -6/+2 | |
| | | | | | split_lines already sets reply_with_*, so calling it again would lose protocol synchronization. | |||||
* | inspect: Fedora/RHEL CDs are multipart if totaldiscs > 1, not > 0. | Richard W.M. Jones | 2012-03-16 | 1 | -1/+1 | |
| | ||||||
* | inspect: Parse isolinux menu title from RHEL 6.2 Live CD. | Richard W.M. Jones | 2012-03-16 | 1 | -0/+15 | |
| | ||||||
* | inspect: Add comment documenting findings of RHEL 5, 6 install CDs. | Richard W.M. Jones | 2012-03-16 | 1 | -0/+58 | |
| | ||||||
* | Version 1.17.18.1.17.18 | Richard W.M. Jones | 2012-03-15 | 20 | -15484/+16696 | |
| | ||||||
* | todo: Document further virt-sparsify improvements. | Richard W.M. Jones | 2012-03-15 | 1 | -0/+8 | |
| | ||||||
* | sparsify: Implement --zero option. | Richard W.M. Jones | 2012-03-15 | 2 | -28/+47 | |
| | | | | This unconditionally zeroes the named partition or filesystem. | |||||
* | sparsify: Add a note about encrypted disks to the man page. | Richard W.M. Jones | 2012-03-15 | 1 | -1/+2 | |
| | ||||||
* | sparsify: Unlink temporary overlay file if user presses ^C. | Richard W.M. Jones | 2012-03-15 | 1 | -1/+5 | |
| | | | | | Add a signal handler so this potentially large temporary file is removed when the user hits ^C. | |||||
* | sparsify: Support sparsifying Linux swap partitions. | Richard W.M. Jones | 2012-03-15 | 2 | -7/+28 | |
| | ||||||
* | sparsify: Use zero-device instead of dd if=/dev/zero to zero device. | Richard W.M. Jones | 2012-03-15 | 1 | -5/+3 | |
| | | | | | zero-device is more efficient in general, and avoids writing to blocks which are already zero. | |||||
* | Use the new lvcreate-free API to create largest possible LVs. | Richard W.M. Jones | 2012-03-15 | 5 | -33/+9 | |
| | ||||||
* | New API: lvcreate-free: Create logical volume as % of free space. | Richard W.M. Jones | 2012-03-15 | 3 | -1/+49 | |
| | ||||||
* | sparsify: Use new zero_free_space API. | Richard W.M. Jones | 2012-03-15 | 1 | -14/+2 | |
| | ||||||
* | New API: zero_free_space: zero free space in a filesystem. | Richard W.M. Jones | 2012-03-15 | 3 | -1/+119 | |
| | | | | | | | | | | | | | | Add an API for doing what virt-sparsify was doing: freeing up free space in a filesystem. The current implementation is simple-minded: we create a file, fill it with zeroes until we run out of space, then delete the file. However the description leaves it open to do a better implementation, eg. using sparsification support that is currently being worked on in ext4 and qemu. The implementation also sends progress notifications, which is an advantage over the old 'dd' method. | |||||
* | sparsify: Only print qemu-img command if verbose. | Richard W.M. Jones | 2012-03-15 | 1 | -1/+1 | |
| | ||||||
* | inspect: Ignore missing HKLM\SYSTEM\MountedDevices (RHBZ#803664). | Richard W.M. Jones | 2012-03-15 | 1 | -4/+6 | |
| | | | | | | When a Windows guest doesn't have a HKLM\SYSTEM\MountedDevices node, inspection fails. However inspection should not completely fail just because we cannot get the drive letter mapping from a guest. | |||||
* | inspector: Update man page to describe how to access inspection info from ↵ | Richard W.M. Jones | 2012-03-14 | 1 | -6/+112 | |
| | | | | other languages and guestfish. | |||||
* | Add guestfsd.suppressions file to EXTRA_DIST.1.17.17 | Richard W.M. Jones | 2012-03-14 | 1 | -2/+3 | |
| | ||||||
* | Version 1.17.17. | Richard W.M. Jones | 2012-03-14 | 18 | -153/+146 | |
| | ||||||
* | Use O_CLOEXEC / SOCK_CLOEXEC for almost all file descriptors. | Richard W.M. Jones | 2012-03-14 | 37 | -74/+129 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The presumption is that all file descriptors should be created with the close-on-exec flag set. The only exception are file descriptors that we want passed through to exec'd subprocesses (mainly pipes and stdin/stdout/stderr). For open calls, we pass O_CLOEXEC as an extra flag, eg: fd = open ("foo", O_RDONLY|O_CLOEXEC); This is a Linux-ism, but using a macro we can easily make it portable. For sockets, similarly: sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...); For accepted sockets, we use the Linux accept4 system call which allows flags to be supplied, but we use the Gnulib 'accept4' module to make this portable. For dup, dup2, we use the Linux dup3 system call, and the Gnulib modules 'dup3' and 'cloexec'. | |||||
* | java: Make sure generator is rerun when necessary to rebuild generated files. | Richard W.M. Jones | 2012-03-14 | 1 | -9/+7 | |
| | ||||||
* | java: Enable -Xlint:all and fix all warnings. | Richard W.M. Jones | 2012-03-14 | 3 | -1/+12 | |
| | ||||||
* | todo: More ongoing code cleanups. | Richard W.M. Jones | 2012-03-14 | 1 | -1/+1 | |
| | ||||||
* | appliance: Enhance --enable-valgrind-daemon with a suppressions file. | Richard W.M. Jones | 2012-03-14 | 3 | -3/+26 | |
| | | | | This lets us suppress errors in system libraries. | |||||
* | daemon: When copy subprocess fails, print return code. | Richard W.M. Jones | 2012-03-14 | 1 | -1/+1 | |
| | | | | Useful for debugging. | |||||
* | todo: Document ongoing code cleanups. | Richard W.M. Jones | 2012-03-14 | 1 | -0/+16 | |
| | ||||||
* | daemon: labels: Memory leak in 'set_label'. | Richard W.M. Jones | 2012-03-14 | 1 | -3/+7 | |
| | | | | This fixes commit d1711dae9dbd7f516469f88807604894c1304228. | |||||
* | Version 1.17.16.1.17.16 | Richard W.M. Jones | 2012-03-13 | 18 | -395/+398 | |
| | ||||||
* | Replace 'int' with 'size_t' passim. | Richard W.M. Jones | 2012-03-13 | 26 | -103/+113 | |
| | | | | | Analyze all uses of 'int' in the code, and replace with 'size_t' where appropriate. | |||||
* | daemon: Implement a growable strings buffer type. | Richard W.M. Jones | 2012-03-13 | 16 | -196/+209 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Previously a lot of daemon code used three variables (a string list, 'int size' and 'int alloc') to track growable strings buffers. This commit implements a simple struct containing the same variables, but using size_t instead of int: struct stringsbuf { char **argv; size_t size; size_t alloc; }; Use it like this: DECLARE_STRINGSBUF (ret); //... if (add_string (&ret, str) == -1) return NULL; //... if (end_stringsbuf (&ret) == -1) return NULL; return ret.argv; |