summaryrefslogtreecommitdiffstats
path: root/fuse
Commit message (Collapse)AuthorAgeFilesLines
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-301-0/+1
| | | | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed. (cherry picked from commit 2f97bf873b64384835f257f8916bf1ebb2af62b4)
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-301-15/+0
| | | | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit. (cherry picked from commit f1d98bbc79496947210ee0305f80440ed8557ec1)
* fuse: guestmount doesn't let you pass '-- [FUSE options]'.Richard W.M. Jones2012-08-051-1/+1
| | | | | | | I don't think it ever did, so the --help text was always wrong, and definitely didn't match the real behaviour of the program. (cherry picked from commit 87602b09ead198bd84c0dac83fde2d1c3dfe55bd)
* fish: Rename fish/virt.c to fish/domain.cRichard W.M. Jones2012-08-051-2/+2
| | | | | | This file handles the -d option for guestfish and other C command line utilities. Renaming this file makes it less confusing. (cherry picked from commit 6054051a9d8a5eee4141ca4b12aa5b7d1f36f56d)
* build: Return 77 from skipped tests.Richard W.M. Jones2012-08-052-5/+5
| | | | (cherry picked from commit fc86db3b3bcd884ee37cef79e22b0324df9fcae6)
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-08-051-1/+1
| | | | | | | This will allow us to easily change the location of this script in future. (cherry picked from commit f2ea617e224cd82496e56a41b5878063d6f02e3d)
* fuse: Cleaner code and documentation for safe cleanups.Richard W.M. Jones2012-08-052-7/+50
| | | | (cherry picked from commit ec0c7e0a1aafd145309ab53749d910ad837d8745)
* fuse: Add regression test for RHBZ#838592.Richard W.M. Jones2012-07-102-2/+91
| | | | (cherry picked from commit 8df259496a80bc74edbab4436e3679d0900bd173)
* fuse: Add guestmount --pid-file option (RHBZ#838592).Richard W.M. Jones2012-07-102-1/+61
| | | | | | | | | | | Since the old version of guestmount uses fuse_main, we have to add a fuse_operations.init function to write the PID file in the child. Also because fuse_main changes directory, the --pid-file filename must be an absolute path (only in this branch). Cherry picked from commit 5546ea6d68532caa69fbede1f29385afe34e7362 and partially rewritten for the stable-1.16 branch.
* fuse: Document race condition possible with fusermount.Richard W.M. Jones2012-07-091-0/+16
| | | | | | See also: https://bugzilla.redhat.com/show_bug.cgi?id=835466#c9 (cherry picked from commit 1cde66165aac222f1a07ad4c3873c61d49eabb02)
* fuse: Document Device or resource busy errors from fusermount.Richard W.M. Jones2012-07-091-0/+17
| | | | (cherry picked from commit b749dc70742e749dbd7c0c20e6e7191fdd199170)
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples (cherry picked from commit ffbf1475f7ae7c462db289ad4834391469e72edd)
* tests: Add SKIP_TEST_* variables to allow these tests to be skipped.Richard W.M. Jones2012-06-281-0/+5
| | | | | | By setting these variables, we can skip tests that fail on RHEL 5. (cherry picked from commit 145f35badfd9ca4a6d9f54f7732566a5e5114876)
* fuse: Skip 'truncate' tests if this command is missing.Richard W.M. Jones2012-06-211-9/+12
| | | | (cherry picked from commit d7c9c6a0d926982b64d13949a5da580ea4ecc4b6)
* fuse: Add replacement for fuse_opt_add_opt_escaped.Richard W.M. Jones2012-06-211-0/+31
| | | | | | | | | | | | RHEL 5-era FUSE didn't have this function. I copied the function out of upstream FUSE, since the license is compatible. Cherry picked from commit 4846b84476015874d569c14c2c30fcd71aa4d54c and backported to libguestfs 1.16. This includes more of the development 'configure.ac' than is strictly necessary, but on the other hand it brings the code closer to that development branch.
* fuse: Fix documentation for call to virt-filesystems.Richard W.M. Jones2012-03-301-1/+1
| | | | | virt-filesystems requires -a/-d option. (cherry picked from commit f5c31db5ed4225c263e6f508a85f38aa80411c0e)
* guestmount: use O_ACCMODE instead of hard codingWanlong Gao2012-01-301-1/+1
| | | | | | | | Change hard code 3 to O_ACCMODE. it'll be more sensible. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> (cherry picked from commit d60d5c091f46dda8399ce2af1b6e5920bd5fb819)
* guestmount: remove tailing spacesWanlong Gao2012-01-301-2/+2
| | | | | | | | just do a cleanup. remove the tailing spaces. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> (cherry picked from commit 0042898880167f93c5e64d76008ab07bd0aa9485)
* Do not run appliance-related checks if not building applianceHilko Bengen2012-01-231-1/+3
|
* Tempus fugit.Richard W.M. Jones2012-01-184-5/+5
| | | | Update all copyright dates to 2012.
* 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
|