Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | New API: xfs: xfs_admin | Wanlong Gao | 2012-08-21 | 1 | -1/+1 | |
| | | | | | | | | | | | Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Remove printuuid, printlabel, since they don't change any settings. - Adjusted the documentation. - Fix the tests. | |||||
* | Replace mount-options with mount where appropriate. | Richard W.M. Jones | 2012-08-18 | 1 | -3/+3 | |
| | | | | | | Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs. | |||||
* | Update API support. | Richard W.M. Jones | 2012-08-18 | 25 | -1/+13114 | |
| | ||||||
* | docs: Rewrite section on protocol limits again. | Richard W.M. Jones | 2012-08-17 | 1 | -22/+20 | |
| | | | | This updates commit 92e241440d361e9491a9d96d23ad7a378cb2ab6a. | |||||
* | docs: Update documentation to reflect no 2/4 MB protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -12/+21 | |
| | ||||||
* | New API: fill-dir: Fill a directory with files (for testing). | Richard W.M. Jones | 2012-08-17 | 1 | -1/+1 | |
| | ||||||
* | guestfs_ls: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+102 | |
| | ||||||
* | New API: ls0 - List files, separated by \0 characters. | Richard W.M. Jones | 2012-08-17 | 1 | -1/+1 | |
| | | | | | This API is not especially useful on its own. It will be used to reimplement guestfs_ls to work without protocol limits. | |||||
* | guestfs_readlinklist: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+41 | |
| | ||||||
* | guestfs_lstatlist, guestfs_lxattrlist: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+125 | |
| | | | | | Note that the code to do this was already in virt-ls, so this is change is mostly just moving the code into the core library. | |||||
* | guestfs_write, guestfs_write_append: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+79 | |
| | | | | | | | | Note that we keep the old daemon calls, but rename them as "internal_write" and "internal_write_append". This lets us implement the new library-side calls more efficiently in the common case when the uploaded content is smaller than the message buffer. In most cases the new calls won't end up using a temporary file. | |||||
* | guestfs_read_lines: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+66 | |
| | | | | This also makes a larger test suite for this command. | |||||
* | guestfs_read_file: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+12 | |
| | ||||||
* | guestfs_find: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 1 | -0/+117 | |
| | | | | | This also reimplements the virt-ls -R option to use the replacement guestfs_find API, which is simpler (though actually less efficient). | |||||
* | guestfs_cat: Reimplement to avoid protocol limits. | Richard W.M. Jones | 2012-08-17 | 2 | -0/+98 | |
| | ||||||
* | launch: For /dev/null drives, create a temporary disk. | Richard W.M. Jones | 2012-08-15 | 1 | -18/+52 | |
| | | | | | This is a workaround for a bug with virtio-scsi in qemu 1.2: https://bugzilla.redhat.com/show_bug.cgi?id=847549 | |||||
* | launch: Move code to add a drive to the list to separate add_drive utility ↵ | Richard W.M. Jones | 2012-08-15 | 1 | -28/+32 | |
| | | | | | | function. This is just code motion / simplification. | |||||
* | launch: Add utility function guestfs___lazy_make_tmpdir. | Richard W.M. Jones | 2012-08-15 | 2 | -8/+21 | |
| | | | | | | This lets us create g->tmpdir lazily earlier if needed. This commit is just code motion. | |||||
* | lib: Add 'g->unique' to handle, for making unique IDs. | Richard W.M. Jones | 2012-08-15 | 1 | -0/+6 | |
| | ||||||
* | inspect: Clarify comment about uniqueness of cache. | Richard W.M. Jones | 2012-08-15 | 1 | -1/+3 | |
| | ||||||
* | close: Check if g->tmpdir is non-NULL before removing tmpdir. | Richard W.M. Jones | 2012-08-15 | 1 | -1/+2 | |
| | | | | This happens, by chance, to work. | |||||
* | New internal APIs: internal-test-set-output, internal-test-close-output. | Richard W.M. Jones | 2012-08-15 | 2 | -0/+7 | |
| | | | | | | | | These internal (testing) APIs allow the bindtests output to be sent to some other place than stdout. This is necessary for Erlang, since stdout is used to communicate with the Erlang interpreter. | |||||
* | Convert release notes to a POD file / man page. | Richard W.M. Jones | 2012-08-11 | 1 | -1/+1 | |
| | | | | | Note that we add the text version to git so that it's available for people to read without requiring any special tools. | |||||
* | New APIs: rsync, rsync-in, rsync-out | Richard W.M. Jones | 2012-08-11 | 1 | -1/+1 | |
| | | | | Implement rsync. | |||||
* | Document problems copying long filenames from NTFS to Linux filesystems ↵ | Richard W.M. Jones | 2012-08-03 | 1 | -0/+22 | |
| | | | | (RHBZ#845488). | |||||
* | grep: Add optargs to grep API and deprecate fgrep etc. | Richard W.M. Jones | 2012-08-02 | 1 | -3/+10 | |
| | | | | | | | | This commit makes grep into an optargs API, with flags for extended, fixed, [case-]insensitive and compressed. At the same time it deprecates: egrep, fgrep, grepi, egrepi, fgrepi, zgrep, zegrep, zfgrep, zgrepi, zegrepi and zfgrepi. | |||||
* | xfs: add new api xfs-growfs | Wanlong Gao | 2012-08-02 | 1 | -1/+1 | |
| | | | | | | New api xfs_growfs for expanding a XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> | |||||
* | Revert "appliance: Add '-drive detect-zero=on' flag if qemu supports it." | Richard W.M. Jones | 2012-08-01 | 1 | -2/+1 | |
| | | | | This reverts commit fe2253088ff51b51e2586f27a9408a38655170e3. | |||||
* | New API: utsname | Richard W.M. Jones | 2012-07-30 | 1 | -1/+1 | |
| | | | | | | | | | | Typical output: ><fs> utsname uts_sysname: Linux uts_release: 3.5.0-1.fc18.x86_64 uts_version: #1 SMP Mon Jul 23 17:43:39 UTC 2012 uts_machine: x86_64 | |||||
* | appliance: Add '-drive detect-zero=on' flag if qemu supports it. | Richard W.M. Jones | 2012-07-26 | 1 | -1/+2 | |
| | | | | | | | NB: The patch to implement this feature in qemu is not upstream, and may never make it upstream. However this is so useful for virt-sparsify that I decided to add this to libguestfs while we see what qemu decides to do. | |||||
* | New APIs: pvchange-uuid, pvchange-uuid-all, vgchange-uuid, vgchange-uuid-all. | Richard W.M. Jones | 2012-07-25 | 1 | -1/+1 | |
| | | | | | | | | These APIs will allow sysprep to change the UUIDs of all PVs and VGs in the system. LVs don't have UUIDs AFAICT, or at least there seems to be no way to change them if they do have them. | |||||
* | Mac OS X: Use u_int64_t/uint64_t instead of unsigned hyper in .x file | Masami HIRATA | 2012-07-24 | 1 | -2/+11 | |
| | | | | | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com> RWMJ: Fixed whitespace in generator_xdr.ml | |||||
* | lib: Use <sys/socket.h> and <sys/un.h> for sockaddr_un | Masami HIRATA | 2012-07-24 | 2 | -0/+4 | |
| | | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com> | |||||
* | Mac OS X: #define UNIX_PATH_MAX 104 | Masami HIRATA | 2012-07-24 | 1 | -0/+4 | |
| | | | | | | See http://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man4/unix.4.html Signed-off-by: Masami HIRATA <msmhrt@gmail.com> | |||||
* | Mac OS X: Added check of #include <endian.h> | Masami HIRATA | 2012-07-24 | 7 | -0/+21 | |
| | | | | | | Mac OS X doesn't have endian.h Signed-off-by: Masami HIRATA <msmhrt@gmail.com> | |||||
* | launch: libvirt: Suppress printing of libvirt errors to stderr and other ↵ | Richard W.M. Jones | 2012-07-24 | 1 | -4/+19 | |
| | | | | cleanups. | |||||
* | launch: libvirt: Use SELinux-mandated directory for sockets (RHBZ#842307). | Richard W.M. Jones | 2012-07-24 | 1 | -31/+147 | |
| | | | | | | Note this does not yet enable sVirt confinement of the appliance. That requires at least that SELinux policy goes upstream, plus there may still be bugs. | |||||
* | launch: libvirt: Move free to end of function. | Richard W.M. Jones | 2012-07-24 | 1 | -11/+6 | |
| | | | | This is just code motion. | |||||
* | launch: libvirt: Add is_blk utility. | Richard W.M. Jones | 2012-07-24 | 1 | -6/+12 | |
| | | | | This is just code motion. | |||||
* | launch: libvirt: Set <emulator> in libvirt XML if g->qemu is not the default. | Richard W.M. Jones | 2012-07-24 | 1 | -0/+9 | |
| | ||||||
* | lib: Initialize libvirt and libxml2 once when the library loads. | Richard W.M. Jones | 2012-07-23 | 2 | -11/+36 | |
| | ||||||
* | launch: Make get-pid and max-disks APIs into virtual methods of the current ↵ | Richard W.M. Jones | 2012-07-23 | 4 | -29/+73 | |
| | | | | attach-method. | |||||
* | tests: Move debug-drives testing API to launch.c and change the output. | Richard W.M. Jones | 2012-07-23 | 2 | -21/+31 | |
| | | | | It should work with any attach-method. | |||||
* | launch: libvirt: Use <driver name="qemu" type=[format] />. | Richard W.M. Jones | 2012-07-23 | 1 | -3/+99 | |
| | | | | | | | | We were using format= which was bogus and libvirt was ignoring it and forcing raw format instead. Also in its default configuration libvirt won't do disk format autodetection at all, so we must do it instead. | |||||
* | launch: libvirt: You can't set O_CLOEXEC flag using fcntl + F_SETFL. | Richard W.M. Jones | 2012-07-23 | 1 | -1/+1 | |
| | | | | | | | And in any case there is no point, since proto.c already sets the SOCK_CLOEXEC flag (using accept4) on this socket. The code now matches the code in launch-appliance.c. | |||||
* | launch: libvirt: Use accept4 to set socket flags correctly. | Richard W.M. Jones | 2012-07-23 | 1 | -5/+1 | |
| | ||||||
* | launch: libvirt: Add <on_reboot>destroy</on_reboot> to libvirt XML. | Richard W.M. Jones | 2012-07-23 | 1 | -0/+17 | |
| | | | | | This causes libvirt to add the qemu -no-reboot option, which reflects existing behaviour. | |||||
* | launch: Allow default attach-method to be set in environment or configure. | Richard W.M. Jones | 2012-07-23 | 2 | -6/+40 | |
| | | | | | | | | | | You can now choose the default attach method in two ways: (1) Set the LIBGUESTFS_ATTACH_METHOD environment variable. (2) ./configure --with-default-attach-method=appliance|libvirt|... Note that (1) overrides (2). | |||||
* | launch: libvirt: Move remaining to-do items to TODO file. | Richard W.M. Jones | 2012-07-23 | 1 | -18/+0 | |
| | ||||||
* | launch: libvirt: Add a hack to detect if KVM is available. | Richard W.M. Jones | 2012-07-23 | 1 | -1/+5 | |
| | | | | | | | | We need to select the <domain type=...> attribute depending on whether KVM is detected in the libvirt capabilities. This is a hack because it doesn't try to parse the libvirt capabilities XML. |