Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | In verbose mode, daemon will display the time elapsed for each command. | Richard W.M. Jones | 2009-07-02 | 1 | -0/+19 | |
| | ||||||
* | avoid automake failure | Jim Meyering | 2009-07-02 | 1 | -1/+1 | |
| | | | | * daemon/configure.ac: Use AM_PROG_CC_C_O, not AC_PROG_CC_C_O. | |||||
* | Remove generated code from git. | Richard W.M. Jones | 2009-07-02 | 2 | -5018/+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. Jones | 2009-07-02 | 4 | -0/+137 | |
| | | | | | | | | | | | | 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. | |||||
* | Call 'udevadm settle' after operations which add/remove device nodes. | Richard W.M. Jones | 2009-07-01 | 4 | -0/+42 | |
| | | | | | | | | | | | | | Because udev operates asynchronously, we found errors which were caused by a previous command (eg. sfdisk or pvremove) creating or removing a device, and that change not having happened by the time the next command was run. This patch adds calls to '/sbin/udevadm settle' after any commands which can add or remove device nodes. If udev is not being used or not available, this should have no effect. The command fails and this is silently ignored. | |||||
* | All instances of 'pclose' now check for return value != 0. | Richard W.M. Jones | 2009-07-01 | 3 | -6/+6 | |
| | | | | | | We are generally interested that the subcommand ran without error, ie. had exit status of 0. 'pclose' returns the exit status, so we now check that pclose (fp) != 0. | |||||
* | Fix error handling of external sfdisk command. | Richard W.M. Jones | 2009-07-01 | 1 | -4/+3 | |
| | | | | | | | | Should use 'pclose' instead of 'fclose' (although fclose happens to work because of glibc internals). The result of pclose is the exit status of the command, so we need to test this is != 0. | |||||
* | Change to use virtio_blk (virtio block device) by default. | Richard W.M. Jones | 2009-07-01 | 2 | -3/+5 | |
| | | | | | | | | | | | | | virtio_blk is the fast, virt-native block device driver supported by qemu and KVM. Note that virtio_blk device names are called /dev/vd*. Existing scripts should continue working because device name translation will silently change device names of the form /dev/sd* to /dev/vd* as required. See also: http://libguestfs.org/guestfs.3.html#block_device_naming | |||||
* | Generated code for mknod, mkfifo, mknod_b, mknod_c, umask. | Richard W.M. Jones | 2009-06-30 | 3 | -0/+165 | |
| | ||||||
* | New commands: mknod, mkfifo, mknod_b, mknod_c and umask. | Richard W.M. Jones | 2009-06-30 | 3 | -0/+117 | |
| | | | | | | | | | | These commands are used to create block and char device nodes or FIFOs (named pipes) in the filesystem. The umask command is required also because the permissions used by mknod are masked by the umask. Also document and guarantee that the umask starts as 022. | |||||
* | Generated code for the 'mkswap*' commands. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+88 | |
| | ||||||
* | Implement 'mkswap', 'mkswap_L' and 'mkswap_U' commands. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+71 | |
| | | | | | | These commands are used to make Linux swap devices. The mkswap_L command makes one with a label. The mkswap_U command makes one with a known UUID. | |||||
* | Generated code for mount-loop command. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+30 | |
| | ||||||
* | Add mount-loop command (RHBZ#508668). | Richard W.M. Jones | 2009-06-29 | 1 | -0/+44 | |
| | | | | | | | | | Loop device mounts don't work for the generic 'mount' commands because the first parameter should be a file not a device. We want to separate out files parameters from device parameters in the long term, so this adds a new mount-loop command for this purpose. | |||||
* | Fix memory leak in daemon/mount.c:do_mount_vfs. | Richard W.M. Jones | 2009-06-29 | 1 | -0/+1 | |
| | ||||||
* | Generated code for 'initrd-list'. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+32 | |
| | ||||||
* | Add 'initrd-list' command to list contents of initrd images. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+89 | |
| | | | | | | Add 'initrd-list' command to list the files inside (new-style) initrd images. Update virt-inspector to use this instead of the less efficient download/unpack locally method. | |||||
* | Generated code for 'du' command. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+30 | |
| | ||||||
* | Added 'du' command. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+73 | |
| | | | | This command estimates file usage for files and directories. | |||||
* | Generated code for df / df-h. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+40 | |
| | ||||||
* | Add 'df' and 'df-h' commands. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+71 | |
| | | | | | | | df and df-h commands can be used interactively to show disk space usage. Use existing statvfs command from programs. | |||||
* | Generated code for head/tail commands. | Richard W.M. Jones | 2009-06-29 | 2 | -4/+136 | |
| | ||||||
* | Implement "head", "head-n", "tail", "tail-n" commands. | Richard W.M. Jones | 2009-06-29 | 2 | -0/+108 | |
| | | | | | These commands let you view parts of a large file without passing the whole file over the network connection. | |||||
* | Generated code for 'wc_*' commands. | Richard W.M. Jones | 2009-06-29 | 3 | -0/+183 | |
| | ||||||
* | Implementation of 'wc_c', 'wc_w' and 'wc_l' commands. | Richard W.M. Jones | 2009-06-29 | 1 | -0/+1 | |
| | | | | These commands count characters, words and lines in a file respectively. | |||||
* | Generated code for 'mkdtemp' command. | Richard W.M. Jones | 2009-06-24 | 2 | -0/+31 | |
| | ||||||
* | Add mkdtemp command. | Richard W.M. Jones | 2009-06-24 | 1 | -0/+30 | |
| | ||||||
* | Generated code for 'scrub-*' commands. | Richard W.M. Jones | 2009-06-23 | 2 | -0/+84 | |
| | ||||||
* | Added 'scrub-*' commands for securely scrubbing filesystems. | Richard W.M. Jones | 2009-06-23 | 2 | -0/+115 | |
| | ||||||
* | Improve error message when appliance doesn't match library. | Richard Jones | 2009-06-22 | 1 | -1/+1 | |
| | ||||||
* | Make CHROOT_IN/OUT macros should loudly if the syscall fails. | Richard Jones | 2009-06-22 | 1 | -4/+15 | |
| | ||||||
* | Check return value from close() call. | Richard Jones | 2009-06-22 | 1 | -1/+5 | |
| | ||||||
* | The 'debug sh' command now uses a real shell. | Richard Jones | 2009-06-22 | 1 | -9/+33 | |
| | ||||||
* | Generated code for 'glob-expand'. | Richard Jones | 2009-06-22 | 2 | -0/+32 | |
| | ||||||
* | Add 'glob-expand' command. | Richard Jones | 2009-06-22 | 2 | -0/+64 | |
| | ||||||
* | Generated code for 'sh' and 'sh-lines' commands. | Richard Jones | 2009-06-22 | 2 | -0/+63 | |
| | ||||||
* | Add 'sh' and 'sh-lines' commands. | Richard Jones | 2009-06-22 | 1 | -0/+16 | |
| | ||||||
* | Check return value from waitpid call in command*() functions. | Richard W.M. Jones | 2009-06-20 | 1 | -2/+6 | |
| | ||||||
* | Add strong note about deprecation of functions which take either device ↵ | Richard W.M. Jones | 2009-06-20 | 1 | -0/+6 | |
| | | | | names or filenames. | |||||
* | Check return value from pclose. | Richard W.M. Jones | 2009-06-20 | 1 | -1/+5 | |
| | ||||||
* | Implement device name translation. Remove device name hacks in tests. | Richard Jones | 2009-06-10 | 2 | -7/+57 | |
| | ||||||
* | In the daemon, change all const char * parameters to char *. | Richard Jones | 2009-06-10 | 28 | -304/+304 | |
| | ||||||
* | Add IS_DEVICE checks for all calls which take a device parameter. | Richard Jones | 2009-06-10 | 3 | -3/+26 | |
| | ||||||
* | Generated code for ntfs_3g_probe command. | Richard Jones | 2009-06-08 | 2 | -0/+32 | |
| | ||||||
* | Add 'ntfs_3g_probe' command so we can probe the "mountability" of an NTFS ↵ | Richard Jones | 2009-06-08 | 2 | -0/+49 | |
| | | | | partition. | |||||
* | Fix RHBZ#503169 comment 13 (regression) and add a regression test. | Richard Jones | 2009-06-04 | 1 | -4/+7 | |
| | ||||||
* | Generated code for the 'sleep' command. | Richard Jones | 2009-06-04 | 2 | -0/+28 | |
| | ||||||
* | Added 'sleep' command. | Richard Jones | 2009-06-04 | 2 | -0/+36 | |
| | ||||||
* | Use --rbind rather than --bind for bind mounting /dev (to get /dev/pts). | Charles Duffy | 2009-06-04 | 1 | -3/+3 | |
| | ||||||
* | Fix mkdir-p if directory exists (RHBZ#503133). | Richard W.M. Jones | 2009-05-29 | 1 | -0/+11 | |
| |