summaryrefslogtreecommitdiffstats
path: root/fuse
Commit message (Collapse)AuthorAgeFilesLines
* fuse: Return EXIT_FAILURE if fuse_main fails.Richard W.M. Jones2011-12-091-1/+1
| | | | | | | | | | fuse_main can return any non-zero value on error. In particular on certain sorts of error such as unsupported -o options it returns 1 (not -1). Therefore make sure any non-zero return is turned into EXIT_FAILURE. (Thanks Pádraig Brady)
* 32 bit: Fix printf off_t.Richard Jones2011-11-111-2/+2
|
* Update FSF address.Matthew Booth2011-11-087-7/+7
|
* fuse: Skip guestmount test if setfacl is not installed.Richard W.M. Jones2011-10-271-0/+5
| | | | | This dependency is optional, don't fail the test if it's not installed.
* guestmount: Fix --live option (RHBZ#744795).Richard W.M. Jones2011-10-262-8/+49
|
* Skip guestmount and virt-sysprep tests if no /dev/fuse.Richard W.M. Jones2011-10-171-0/+5
|
* guestmount: Add note to man page about 'fuse' group for Debian.Richard W.M. Jones2011-10-131-0/+9
|
* man pages: Add a standard EXIT STATUS section to most pages.Richard W.M. Jones2011-08-271-0/+5
|
* out-of-tree build: fix documentation generationHilko Bengen2011-08-151-1/+1
|
* build: Set TMPDIR for local testing.Richard W.M. Jones2011-08-081-0/+4
| | | | | | This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
* docs: Separate out combined =item 's in man pages.Richard W.M. Jones2011-07-161-12/+36
| | | | | | | | | | | | | | | Turn: =item B<-a> | B<--all> into: =item B<-a> =item B<--all> This gives a more natural-looking manual page, as well as making it easier to directly link to these sections.
* fuse: Add note about allowing other users to see filesystem (RHBZ#705200).Richard W.M. Jones2011-05-171-0/+10
|
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+1
|
* fish: fuse: Remove redundant -DGUESTFS_DEFAULT_PATH.Richard W.M. Jones2011-05-171-1/+0
| | | | | This was left over from earlier code. It is used in the base library, but not in guestfish or guestmount.
* fish: Allow -d UUID (specify libvirt domains by UUID).Richard W.M. Jones2011-05-061-0/+2
| | | | | | | | | | | | | | This applies in all the commands which use the common C option parsing code, ie: * guestfish * guestmount * virt-cat * virt-df * virt-filesystems * virt-inspector * virt-ls * virt-rescue
* Remove local LIBGUESTFS_PATH detection from guestfish and guestmount.Richard W.M. Jones2011-04-161-13/+0
| | | | | | | | | | | Remove the hack that let you run ./fish/guestfish or ./fuse/guestmount. You now have to do: ./run ./fish/guestfish or ./run ./fuse/guestmount to run these programs without installing.
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-131-0/+1
| | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above.
* Add /etc/libguestfs-tools.conf configuration file.Richard W.M. Jones2011-03-313-1/+23
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* fuse: Document -w flag in --help output.Richard W.M. Jones2011-03-301-0/+1
|
* fuse: Fix getxattr, listxattr calls and add a regression test (RHBZ#691389).Richard W.M. Jones2011-03-283-20/+82
| | | | | | | | | | | | | | | | | The documentation for the getxattr and listxattr calls is not very clear and as a result we were always returning something different from that which the Linux kernel would usually return. This fixes these calls, at least far enough that both the 'getfattr' and 'getfacl' programs now work fine on FUSE-mounted filesystems. Note that SELinux attrs are *not* passed through. This appears to be a known bug between SELinux and FUSE. For more information see: http://www.spinics.net/lists/selinux/msg09460.html Notes: Labels: bugfix, RHBZ#691389
* fish: fuse: Add -m dev:mnt:opts to allow mount options to be specified.Richard W.M. Jones2011-03-281-1/+13
| | | | | | | | | | | | | This lets you turn on ACLs and xattrs by doing: -m /dev/sda1:/:acl,user_xattr The extra parameter is passed through to mount_options: libguestfs: trace: mount_options "acl,user_xattr" "/dev/sda1" "/" Notes: Labels: feature
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-032-0/+10
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* fuse: Add more tracing for calls into guestmount functions.Richard W.M. Jones2010-12-192-1/+60
|
* fuse: Set UID and GID when performing FUSE tests.Richard W.M. Jones2010-12-071-1/+3
| | | | This avoids breakage on Ubuntu.
* fuse: Disable test which doesn't run reliably on Debian.Richard W.M. Jones2010-12-071-11/+12
| | | | See discussion in RHBZ#660687.
* fuse: Fix emulation of open call.Richard W.M. Jones2010-12-071-42/+5
| | | | | We were being over-complex in this call. All the FUSE API requires this call to do is to check permissions.
* fuse: Fix segfault in guestmount --verbose.Richard W.M. Jones2010-12-071-1/+1
| | | | | If hash_delete returns NULL and --verbose option was given then this would cause a segfault.
* Remove ability to build static distribution.Richard W.M. Jones2010-12-061-6/+0
| | | | | | We are now going to build binaries for each distribution so there is no need to build the quasi-distro-independent static binaries any more.
* build: Centralize all POD manipulation in 'podwrapper.sh' script.Richard W.M. Jones2010-11-241-18/+11
|
* fuse: Add note in test about how to debug guestmount.Richard W.M. Jones2010-11-241-0/+2
|
* New tool: virt-filesystemsRichard W.M. Jones2010-11-231-2/+2
| | | | | | | | This tool replaces virt-list-filesystems and virt-list-partitions with a new tool written in C with a more uniform command line structure and output. This existing Perl tools are deprecated but remain indefinitely.
* static: Use correct libraries for static binaries.Richard W.M. Jones2010-11-131-1/+1
| | | | Also add virt-cat.static target.
* fish: Use core add-domain API to implement '-d' option.Richard Jones2010-11-111-2/+1
| | | | | | This also makes libxml2 and libvirt into optional dependencies. If they are missing then the core API will print an error, as will the '-d' option to guestfish.
* fish: Add --rw option (does nothing yet).Richard W.M. Jones2010-11-082-1/+13
| | | | | | | | | | This adds the guestfish --rw option, intended in future to be required for writing to disk images. At the moment this does not change the default and so does nothing. This patch is intended for backporting to the stable branches so that we can start to introduce scripts which use 'guestfish --rw'.
* fish: '-i' option automatically handles whole-disk encryption.Richard W.M. Jones2010-11-053-2/+24
| | | | | | | | | | | This feature is also available in guestmount because of the shared option parsing code. You don't need to do anything to enable it, just using -i will attempt decryption of encrypted partitions. Only works for simple Fedora whole-disk encryption. It's a work-in-progress to make it work for other types of encryption.
* fuse: Use guestfs_last_errno instead of errno-reversal-hack.Richard W.M. Jones2010-11-031-31/+1
|
* binary: Link guestmount static binary with -lm.Richard W.M. Jones2010-11-021-1/+1
| | | | | This is indirectly required via the new shared guestfish C inspection code by libxml2.
* Unify guestfish and guestmount options processing (RHBZ#642932).Richard W.M. Jones2010-10-273-135/+105
| | | | | | | | | | | | | | | In guestfish, factor out the processing of the options -a, -c, -d, -i, -m, -n, -r, -v, -V, -x into a separate set of files: options.c, options.h, inspect.c, virt.c. Change guestmount so that it uses these same files (from the ../fish directory) to process the same options. This unifies the handling of these options between the two programs. It also adds the useful inspection feature to guestmount, so you can now do: guestmount -d Guest -i --ro mnt/
* Enable autosync by default.Richard W.M. Jones2010-10-271-1/+0
|
* fuse: Add --format option to docs (RHBZ#642934,CVE-2010-3851).Richard W.M. Jones2010-10-231-0/+15
| | | | | | This updates commit 44c5ee1163918bd5c9e6aa6c292f0c3bb15b7b25. Document the --format option in the guestmount manual page.
* fuse: Specify format of disks (RHBZ#642934,CVE-2010-3851).Richard W.M. Jones2010-10-221-4/+23
| | | | | For command line disk images, specify the format using --format option in the same way as for guestfish.
* build: Don't add version extra string to the version number.Richard Jones2010-08-271-2/+6
| | | | | | | | | | | | If this string was non-empty, then it broke a lot of things because autoconf and other parts of the build system were expecting this string to contain a simple MAJOR.MINOR.RELEASE version number. This requires changes to guestfish and guestmount so they use the guestfs_version API to fetch the version from the library. (The Perl tools were already doing it this way). In a way this is more accurate, because it's no longer hard-coded in the binary, but fetched from the dynamically linked libguestfs.so.
* Include statically linked binaries in the binary distribution.Richard Jones2010-08-251-0/+6
|
* fuse: Implement write syscall (RHBZ#592883).Richard Jones2010-05-202-1/+22
|
* New API: write for creating files with fixed content (RHBZ#501889).Richard Jones2010-05-201-2/+2
| | | | | | | | | | | | | The guestfs_write call can be used to create small files with arbitrary 8 bit content, including \0 bytes. This replaces and deprecates write-file, which cannot be modified to use BufferIn because of an unfortunate choice in the ABI: the size parameter to write-file, if zero, means that the daemon tries to calculate the length of the buffer using strlen. However this fails if we pass a zero-length buffer using BufferIn because then the daemon tries to do strlen on a (really) zero length buffer, not even containing a terminating \0 character, thus segfaulting.
* Fix build error in fuse/guestmount.c.Matthew Booth2010-04-141-0/+1
| | | | | | | | guestmount.c: In function 'main': guestmount.c:899: error: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration] guestmount.c wasn't including locale.h.
* fuse: Fix typo in test.Richard Jones2010-03-011-1/+1
|
* Remove some unused variables.Richard Jones2010-02-151-1/+1
| | | | | | Since we have to compile with -Wno-unused-variables, we don't spot unused variables in code. I found these by compiling the code in Ubuntu.
* Use mount-options instead of mount to avoid implicit -o sync.Richard Jones2010-02-101-4/+7
| | | | | | | | | | | | | | | guestfs_mount adds -o sync implicitly. This causes a very large performance problem for write-intensive programs (eg. virt-v2v). Document this as a "gotcha". Change the tests, guestfish, Sys::Guestfs::Lib, guestmount to use mount-options instead. (Note that this gotcha does not affect mount-ro). The source of the performance problem was first identified by Matthew Booth.
* Set locale in C programs so l10n works (RHBZ#559962).Richard Jones2010-01-292-0/+5
| | | | | | | | | | | | | | | This commit adds the calls to setlocale &c to all of the current C programs. It also adds l10n support to hivexget and hivexml which lacked them previously. To test this, try: LANG=pa_IN.UTF-8 guestfish --cmd-help (You can only do this test after installing the package, or at least the 'pa.mo' mo-file in the correct place).