summaryrefslogtreecommitdiffstats
path: root/src/MAX_PROC_NR
Commit message (Collapse)AuthorAgeFilesLines
* New API: get-umask, returns the current umask (RHBZ#582891).Richard Jones2010-04-171-1/+1
|
* New API: Add aug-clear call for clearing an Augeas node.Richard Jones2010-04-131-1/+1
|
* New API: lvresize-free to extend LVs into percentage of free space.Richard Jones2010-04-121-1/+1
|
* New API: checksum-device for checksumming devices.Richard Jones2010-04-101-1/+1
| | | | Analogous to the usual 'checksum' call.
* New partition APIs: part_del, part_get_bootable, part_get/set_mbr_idRichard Jones2010-04-101-1/+1
| | | | These APIs flesh out further the partitioning API.
* New API calls to upload/download txz files (RHBZ#580556).Richard Jones2010-04-081-1/+1
|
* New API: guestfs_zero_device to zero whole devices.Richard Jones2010-03-311-1/+1
|
* New API: guestfs_copy_size to copy a fixed number of bytes.Richard Jones2010-03-231-1/+1
| | | | | | | 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 Jones2010-03-181-1/+1
| | | | | | | | | 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.
* New API call: initrd-cat to list a file from an initrd.Richard Jones2010-02-091-1/+1
|
* Implement 'vgrename' and 'lvrename' APIs.Richard Jones2010-01-281-1/+1
|
* Add 'filesize' call.Richard Jones2010-01-251-1/+1
| | | | | Returns the size of a file. You can already do this with 'stat', but this call is good for scripting.
* Implement 'dd' command.Richard Jones2009-11-231-1/+1
|
* availability: Add guestfs_available.Richard Jones2009-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start a new API allowing groups of functions to be tested for availability. There are two reasons for this: (1) If libguestfs is built with missing dependencies (eg. no Augeas lib) then the corresponding functions are disabled in the appliance. Up till now there has been no way to test for this except to speculatively issue commands and check for errors. (2) When we port the daemon to Win32 it is likely that major pieces of functionality won't be available (eg. LVM support). This API gives a way to test for that. There is no change for existing clients: you still have to check for errors from individual API calls. For new clients, you will be able to test for availability of particular APIs. Usage scenario (A): An LVM editing tool which requires both the LVM API and inotify in order to function at all: char *apis[] = { "inotify", "lvm2", NULL }; r = guestfs_available (g, apis); if (r == -1) { /* print an error and exit */ } Usage scenario (B): A general purpose tool which optionally provides configuration file editing, but this can be disabled, the result merely being reduced functionality: char *apis[] = { "augeas", NULL }; r = guestfs_available (g, apis); enable_config_edit_menus = r == 0;
* New API call: fill - fill a file with octetsRichard Jones2009-11-171-1/+1
|
* Generic partition creation interface.Richard Jones2009-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a generic partition creation interface which should be future-proof and extensible, and partially replaces the old sfdisk-based interface. The implementation is based on parted but is hopefully not too dependent on the particulars of parted. The following new calls are introduced: guestfs_part_init: Initialize a disk with a partition table. Unlike the sfdisk- based interface, we also support GPT and other partition types, which is essential to scale to devices larger than 2TB. guestfs_part_add: Add a partition to an existing disk. guestfs_part_disk: Convenience function which combines part_init & part_add, creating a single partition that covers the whole disk. guestfs_part_set_bootable: guestfs_part_set_name: Set various aspects of existing partitions. guestfs_part_list: List partitions on a device. This returns a programming-friendly list of partition structs (in contrast to sfdisk-l which cannot be parsed). guestfs_part_get_parttype: Return the partition table type, eg. "msdos" or "gpt". The following calls are planned, but not added currently: guestfs_part_get_bootable guestfs_part_get_name guestfs_part_set_type guestfs_part_get_type
* New API call: preadRichard Jones2009-11-021-1/+1
| | | | | guestfs_pread lets you do partial file reads from arbitrary places within a file. It works like the pread(2) system call.
* New API calls: lstatlist, lxattrlist, readlinklist.Richard Jones2009-11-021-1/+1
| | | | | | | | These three functions are very specifically designed for FUSE support, so we can list directories efficiently. Instead of making lots of lstat, lgetxattr and readlink calls, we can make just three calls per directory to grab all the attributes (which we then cache briefly).
* New API calls: truncate, truncate_size, mkdir_mode, utimens, lchown.Richard Jones2009-11-021-1/+1
| | | | | | | | | | | | | | | truncate, truncate_size: Used to truncate files to a particular size, or to zero bytes. mkdir_mode: Like mkdir but allows you to also specify the initial permissions for the new directory. utimens: Set timestamp on a file with nanosecond accuracy. lchown: Corresponding to lchown(2) syscall (we already have chown). The implementation is complicated by the fact that we had to add an Int64 parameter type to the generator.
* New API: vfs_type - get the Linux VFS driver for a mounted device.Richard Jones2009-10-261-1/+1
|
* New API: case-sensitive-path to return case sensitive path on NTFS 3g fsRichard Jones2009-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | This function handles an annoyance/peculiarity of the Linux NTFS 3g driver, which is that it exports NTFS filesystems with names case sensitive, even though under Windows they would be case insensitive. This causes problems because the location of (eg.) c:\windows might appear as /windows or /WINDOWS (etc) depending on the inconsequential details of how it was originally created. Example of this problem on a real Windows guest: ><fs> file /windows/system32/config/system.log libguestfs: error: file: access: /windows/system32/config/system.log: No such file or directory ><fs> case-sensitive-path /windows/system32/config/system.log /WINDOWS/system32/config/system.LOG ><fs> file /WINDOWS/system32/config/system.LOG MS Windows registry file, NT/2000 or above
* New API: find0 (unlimited version of find)Richard Jones2009-10-201-1/+1
| | | | | | | | | | | | | This adds a new API call guestfs_find0, which is like guestfs_find but mainly doesn't suffer from the protocol limit of the earlier command. The earlier command is not deprecated because it is still very useful. guestfs_find0 uses a FileOut parameter and writes the results to an external file. The filenames in the output are separated by ASCII NUL characters (so a bit like "find -print0"). There is also the addition of a regression test for this command.
* Add echo_daemon commandMatthew Booth2009-09-141-1/+1
| | | | | echo_daemon is a simple echo which can be used to test connectivity between the client and daemon.
* New 'modprobe' command.Matthew Booth2009-08-181-1/+1
| | | | Allow kernel modules to be loaded into the appliance.
* New commands: mkfs-b, mke2journal*, mke2fs-J*Richard W.M. Jones2009-08-151-1/+1
| | | | | | | | | | mkfs-b: Pass the -b (blocksize) parameter to mkfs. mke2journal and friends: Lets you create external ext2 journals on devices. mke2fs-J and friends: Lets you create ext2/3/4 filesystems with external journals.
* Add 'setcon', 'getcon' commands to set and get the SELinux context.Richard Jones2009-08-131-1/+1
|
* Add interface to Linux 'inotify' API.Richard W.M. Jones2009-07-311-1/+1
|
* New commands: swapon-*, swapoff-*, mkswap-file.Richard W.M. Jones2009-07-311-1/+1
| | | | | | | | | | | | swapon-device swapoff-device swapon-file swapoff-file swapon-label swapoff-label swapon-uuid swapoff-uuid mkswap-file
* New command: 'fallocate' to (pre-)allocate sized files.Richard W.M. Jones2009-07-311-1/+1
|
* New commands: 'ln', 'ln-f', 'ln-s', 'ln-sf' and 'readlink'.Richard W.M. Jones2009-07-311-1/+1
| | | | | These commands can be used to make hard and symbolic links. The readlink command is used to read existing symbolic links.
* Add 'realpath' command.Richard W.M. Jones2009-07-311-1/+1
|
* Implement '*grep*' family of commands.Richard Jones2009-07-291-1/+1
|
* Generator: Implement RBufferOut and "read-file" call.Richard W.M. Jones2009-07-211-1/+1
| | | | | | | | | This commit implements the RBufferOut type for returning arbitrary 8 bit data from calls. We also implement the guestfs_read_file call to read a whole file that can contain any 8 bit content, but up to a limit of ~ 2 MB.
* New commands: 'mkmountpoint' and 'rmmountpoint'Richard W.M. Jones2009-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | These specialized commands are used to create additional mountpoints before mounting filesystems. They are only used where you want to mount several unrelated or read-only filesystems together, and need additional care to use correctly. Here is how to use these calls to unpack the "Russian doll" nest of a Fedora 11 live CD: add-ro Fedora-11-i686-Live.iso run mkmountpoint /cd mkmountpoint /squash mkmountpoint /ext3 mount /dev/sda /cd mount-loop /cd/LiveOS/squashfs.img /squash mount-loop /squash/LiveOS/ext3fs.img /ext3 The inner filesystem is now unpacked under the /ext3 mountpoint.
* New command: 'mountpoints' which returns a hash of device -> mountpoint.Richard W.M. Jones2009-07-151-1/+1
|
* Support for Linux extended attributes.Richard W.M. Jones2009-07-141-1/+1
| | | | | | | | | | | | | | | | This commit adds six calls to support Linux extended attributes. They are: getxattrs list all extended attributes for a file or directory setxattr add/replace an extended attribute removexattr remove an extended attribute lgetxattrs \ lsetxattr (same as above, but operate on symbolic links) lremovexattr / See attr(5) for more information. This also adds support for the FBuffer field type, which maps to an XDR opaque<> or a C (int, char *) pair.
* Implement new 'zfile' command, to show file type inside compressed files.Richard Jones2009-07-131-1/+1
|
* Add 'sfdiskM' command.Richard W.M. Jones2009-07-021-1/+1
| | | | | | | | | | This command is a saner interface to partitioning. All partition sizes are specified in megabytes (not cylinders). You don't need to specify the cyls/heads/secs parameters. All the test code has been updated to use this, so it is now CHS-independent (eg. when CHS changes as between IDE and virtio).
* Re-add src/MAX_PROC_NR (generated file).Richard W.M. Jones2009-07-021-0/+1
| | | | | This file is required by configure, so we need to add it so it is available after the git checkout.
* Remove generated code from git.Richard W.M. Jones2009-07-021-1/+0
| | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
* Add 'readdir' call.Richard W.M. Jones2009-07-021-1/+1
| | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this.
* Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-301-1/+1
|
* Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for mount-loop command.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for 'initrd-list'.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for 'du' command.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for df / df-h.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for head/tail commands.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for 'wc_*' commands.Richard W.M. Jones2009-06-291-1/+1
|
* Generated code for 'mkdtemp' command.Richard W.M. Jones2009-06-241-1/+1
|