Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Const-correctness fix. | Jim Meyering | 2010-03-26 | 1 | -1/+1 |
| | |||||
* | appliance: Set $PATH instead of hard-coding paths to binaries everywhere. | Richard Jones | 2010-03-26 | 15 | -68/+88 |
| | | | | | | Change the appliance so PATH includes common directories. Thus we don't need to hard-code paths to binaries (eg. "/sbin/fdisk") everywhere. | ||||
* | Fix lvresize test on RHEL 5, by fixing guestfs_e2fsck_l. | Richard Jones | 2010-03-24 | 1 | -2/+9 |
| | | | | | | | | | The problem is that mkfs was making an ext2 filesystem, which later we were checking with e4fsck. e4fsck corrects an "error" on the filesystem: /dev/VG/LV: Adding dirhash hint to filesystem. e4fsck returns 1 (errors corrected) which we were interpreting as an error return. | ||||
* | Use ext4 dev tools on RHEL 5 (RHBZ#576688). | Richard Jones | 2010-03-24 | 1 | -51/+85 |
| | |||||
* | New API: guestfs_copy_size to copy a fixed number of bytes. | Richard Jones | 2010-03-23 | 1 | -0/+81 |
| | | | | | | | This is similar to 'guestfs_dd', but it copies just a fixed number of bytes from the source to the destination. It's an error if the source is too short or if the destination is too small. | ||||
* | New APIs: Query the relationship between LVM objects. | Richard Jones | 2010-03-18 | 1 | -0/+83 |
| | | | | | | | | | These calls allow you to query the relationship between LVM objects, for example, which PVs contain a VG, or which LVs are contained in a VG. See the example / test program 'regressions/test-lvm-mapping.pl' for an example of how to do this from Perl. | ||||
* | daemon: Add a trim utility function. | Richard Jones | 2010-03-18 | 2 | -0/+24 |
| | | | | | This function trims the whitespace from around a string. It does this in-place, so it can be called for malloc'd strings. | ||||
* | Tab to space (whitespace fixes only). | Richard Jones | 2010-03-12 | 1 | -1/+1 |
| | |||||
* | Distribute .gitignore files. | Richard Jones | 2010-02-15 | 1 | -1/+2 |
| | | | | | These are useful for Debian since they keep the tarball unpacked in git. | ||||
* | daemon: Don't need to prefix error messages with the command name. | Richard Jones | 2010-02-12 | 41 | -113/+116 |
| | | | | | | | | | | | | | | | | | | | | 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:..) | ||||
* | New API call: initrd-cat to list a file from an initrd. | Richard Jones | 2010-02-09 | 1 | -0/+121 |
| | |||||
* | Implement 'vgrename' and 'lvrename' APIs. | Richard Jones | 2010-01-28 | 1 | -0/+44 |
| | |||||
* | Add 'filesize' call. | Richard Jones | 2010-01-25 | 1 | -0/+18 |
| | | | | | Returns the size of a file. You can already do this with 'stat', but this call is good for scripting. | ||||
* | Update to latest Gnulib. | Richard Jones | 2010-01-13 | 2 | -2/+7 |
| | |||||
* | daemon: Work around udevsettle issue (RHBZ#548121). | Richard Jones | 2009-12-18 | 1 | -21/+9 |
| | |||||
* | daemon error handling: Define a new function reply_with_perror_errno. | Richard Jones | 2009-12-07 | 2 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to save the errno from a previous call and pass it to reply_with_perror. For example, original code: r = some_system_call (); err = errno; do_cleanup (); errno = err; if (r == -1) { reply_with_perror ("failed"); return -1; } can in future be changed to: r = some_system_call (); err = errno; do_cleanup (); if (r == -1) { reply_with_perror_errno (err, "failed"); return -1; } | ||||
* | daemon error handling: recursive_mkdir shouldn't need to set errno. | Richard Jones | 2009-12-07 | 1 | -5/+11 |
| | |||||
* | daemon error handling: Clear errno before calling stub functions. | Richard Jones | 2009-12-04 | 1 | -1/+16 |
| | | | | | | This just ensures that we accurately report errors, even if our error path code doesn't set errno. We won't end up with a bogus errno left over from a previous call. | ||||
* | Whitespace change. | Richard Jones | 2009-11-27 | 1 | -1/+1 |
| | |||||
* | daemon: Move prototypes around to keep functions grouped logically. | Richard Jones | 2009-11-26 | 1 | -3/+3 |
| | |||||
* | Fix error handling in 'zero' function. | Richard Jones | 2009-11-26 | 1 | -10/+7 |
| | |||||
* | Make realpath call optional, disable it for Windows. | Richard Jones | 2009-11-26 | 2 | -0/+16 |
| | |||||
* | build: update gnulib submodule to latest | Richard Jones | 2009-11-26 | 1 | -0/+1 |
| | |||||
* | daemon: program_name must be defined for Gnulib error module. | Richard Jones | 2009-11-26 | 1 | -0/+3 |
| | |||||
* | daemon/Win32: use gnulib modules connect, socket and symlinkat (for readlinkat). | Richard Jones | 2009-11-26 | 4 | -2/+38 |
| | |||||
* | daemon/Win32: provide htonl, htons, ntohl, ntohs functions. | Richard Jones | 2009-11-26 | 5 | -1/+90 |
| | | | | These functions are not available on Windows. | ||||
* | daemon/Win32: Use Gnulib perror module. | Richard Jones | 2009-11-26 | 1 | -1/+2 |
| | |||||
* | daemon: Link guestfs_protocol.[ch] into the daemon directory. | Richard Jones | 2009-11-26 | 1 | -5/+24 |
| | | | | | | | | | | | Instead of doing a recursive call into the src/ directory to build the object files, hard link the source files into the daemon directory and build them separately. See: http://www.redhat.com/archives/libguestfs/2009-November/msg00254.html Thanks to Jim Meyering for noticing a typo in the original version. | ||||
* | daemon: Typo generator_build -> generator_built | Richard Jones | 2009-11-26 | 1 | -1/+1 |
| | |||||
* | daemon: Indent C macros to reflect nesting level. | Richard Jones | 2009-11-26 | 1 | -5/+5 |
| | |||||
* | daemon/Win32: Win32 can't fork message moved to separate function (Jim Meyering) | Richard Jones | 2009-11-26 | 1 | -5/+11 |
| | |||||
* | daemon: Fix build on Unix. | Richard Jones | 2009-11-25 | 1 | -1/+3 |
| | |||||
* | daemon: Fix sync() call on Unix. | Richard Jones | 2009-11-25 | 1 | -1/+2 |
| | |||||
* | daemon/Win32: update comment | Richard Jones | 2009-11-25 | 1 | -1/+1 |
| | |||||
* | daemon/Win32: Supply MAX macro for challenged platforms. | Richard Jones | 2009-11-25 | 1 | -0/+4 |
| | |||||
* | daemon/Win32: Windows can't daemonize. | Richard Jones | 2009-11-25 | 1 | -0/+5 |
| | |||||
* | daemon/Win32: Windows replacement for umask. | Richard Jones | 2009-11-25 | 1 | -0/+8 |
| | |||||
* | daemon/Win32: Replace setenv with Win32 equivalent. | Richard Jones | 2009-11-25 | 1 | -0/+7 |
| | |||||
* | daemon/Win32: Use xdr_u_int for PortableXDR compatibility. | Richard Jones | 2009-11-25 | 2 | -8/+8 |
| | | | | PortableXDR didn't support xdr_uint32_t. xdr_u_int is the same type. | ||||
* | daemon/Win32: Don't bother blocking SIGPIPE on Win32. | Richard Jones | 2009-11-25 | 1 | -0/+2 |
| | |||||
* | daemon/Win32: Use gnulib getaddrinfo module. | Richard Jones | 2009-11-25 | 3 | -1/+12 |
| | |||||
* | daemon/Win32: Implement statvfs using GetDiskFreeSpaceEx. | Richard Jones | 2009-11-25 | 4 | -2/+128 |
| | | | | | | | At the time of writing Gnulib didn't support Win32 for its fsusage API. Therefore this patch uses GetDiskFreeSpaceEx if it's available (on Windows) otherwise falls back to using Gnulib fsusage. | ||||
* | daemon: Move statvfs code into separate file. | Richard Jones | 2009-11-25 | 3 | -38/+69 |
| | | | | | | This makes no functional change to the code. It just moves the statvfs-related code out of daemon/stat.c into a new file called daemon/statvfs.c. | ||||
* | daemon: Use gnulib futimens module. | Richard Jones | 2009-11-25 | 5 | -11/+10 |
| | | | | | | | | | Instead of checking for futimens support and falling back (incorrectly in one case) to using futimes, use gnulib's module. However the gnulib module does not yet support Win32, so this change is only really useful on platforms like RHEL 5. | ||||
* | daemon/Win32: Use gnulib pread module. | Richard Jones | 2009-11-25 | 2 | -0/+3 |
| | |||||
* | sync: Windows implementation of sync() call. | Richard Jones | 2009-11-25 | 4 | -7/+110 |
| | | | | | Replace calls to sync() with calls to sync_disks() which supports Win32 via FlushFileBuffers. | ||||
* | daemon: Alternate implementation of posix_fallocate. | Richard Jones | 2009-11-25 | 2 | -1/+23 |
| | | | | | If the posix_fallocate function is not available [ie. Windows] use an alternate implementation that just loops and writes. | ||||
* | dd: Missing include of <string.h> | Richard Jones | 2009-11-25 | 1 | -0/+1 |
| | | | | Breaks compilation on Windows. | ||||
* | daemon/Windows: Define _WIN32_WINNT when compiling on Windows. | Richard Jones | 2009-11-25 | 1 | -0/+6 |
| | |||||
* | daemon: Fix return value from aug_defnode. | Richard Jones | 2009-11-24 | 1 | -1/+1 |
| | | | | | Bug fix - the return value from this function was wrong in the no-Augeas case. |