summaryrefslogtreecommitdiffstats
path: root/df
Commit message (Collapse)AuthorAgeFilesLines
* syntax: Remove include <assert.h> where assert is not used.Richard W.M. Jones2012-09-151-1/+0
| | | | Found by 'make syntax-check'.
* tests: Attach copyright and license (GPLv2+) notices to various test scripts.Richard W.M. Jones2012-08-311-0/+16
| | | | For some reason these tests did not have license notices.
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-211-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.
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-211-14/+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.
* fish: Rename fish/virt.c to fish/domain.cRichard W.M. Jones2012-07-191-2/+2
| | | | | This file handles the -d option for guestfish and other C command line utilities. Renaming this file makes it less confusing.
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-07-161-1/+1
| | | | | This will allow us to easily change the location of this script in future.
* run: Set MALLOC_PERTURB_ to a random value.Richard W.M. Jones2012-06-281-5/+1
| | | | | | | | | | | | | | | | | MALLOC_PERTURB_ is a glibc feature which causes malloc to wipe memory before and after it is used, allowing both use-after-free and uninitialized reads to be detected with relatively little performance penalty: http://udrepper.livejournal.com/11429.html?nojs=1 Modify the ./run script so that it always sets this. We were already using MALLOC_PERTURB_ in most tests. Since ./run is now setting this, we can remove it from individual Makefiles. Most TESTS_ENVIRONMENT will now simply look like this: TESTS_ENVIRONMENT = $(top_builddir)/run --test
* tests: Add ./run --test option.Richard W.M. Jones2012-06-261-1/+1
| | | | | | | This option, when added via TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test allows us to run the tests and only print the full output (including debugging etc) when the test fails.
* virt-df: Use guestfs_max_disks instead of hard-coding limit of 25.Richard W.M. Jones2012-06-133-49/+142
| | | | And comprehensively fix it so it works with > 26 disks.
* virt-df: Don't fail immediately if a disk is not accessible (RHBZ#789504).Richard W.M. Jones2012-05-031-44/+80
|
* virt-alignment-scan, virt-df: Add newlines after error messages.Richard W.M. Jones2012-05-031-6/+6
|
* Remove "convenience header" "gettext.h" and use <libintl.h> instead.Richard W.M. Jones2012-05-012-0/+2
| | | | | | | | | | | | gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
* Check library still compiles without libvirt.Richard W.M. Jones2012-04-181-0/+2
|
* df: Avoid a compilation error if libxml2 is not available.Richard W.M. Jones2012-03-253-4/+4
| | | | | | | | | | virt_df-domains.o: In function `add_domain': /home/feeliwood/Downloads/libguestfs-1.17.21/df/domains.c:274: undefined reference to `guestfs___for_each_disk' guestfs___for_each_disk is only available when libvirt _and_ libxml2 dependencies are available at compile time. Thanks Tho Huynh.
* Do not run appliance-related checks if not building applianceHilko Bengen2012-01-231-0/+2
|
* Replace setting of environment variables with usage of local run scriptHilko Bengen2012-01-231-3/+1
| | | | (Includes fix by RWMJ)
* Tempus fugit.Richard W.M. Jones2012-01-185-5/+5
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-181-3/+2
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* tests: Split images -> tests/data + tests/guestsRichard W.M. Jones2011-12-221-1/+1
|
* Don't rely on implicit promotion of float to double in printf args.Richard W.M. Jones2011-11-221-1/+1
|
* df, testing: Add notes on virt-df numbers (thanks Kashyap Chamarthy).Richard W.M. Jones2011-11-221-0/+26
|
* df: Disable part of virt-df test.Richard W.M. Jones2011-11-111-8/+10
| | | | | See: https://www.redhat.com/archives/libguestfs/2011-November/msg00051.html
* Update FSF address.Matthew Booth2011-11-087-7/+7
|
* libvirt: Detect if a disk has the <readonly/> flag.Richard W.M. Jones2011-10-261-2/+3
| | | | | | This changes the private function guestfs___for_each_disk so that the <readonly/> flag on libvirt disks is detected and passed through to the callback function.
* 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-1/+2
| | | | | | This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
* virt-df: Re-add documentation for --csv option.Richard W.M. Jones2011-07-261-0/+6
| | | | | The documentation for the --csv option disappeared between 1.6 and 1.8 when we rewrote virt-df in C. Re-add it from 1.6 sources.
* docs: Separate out combined =item 's in man pages.Richard W.M. Jones2011-07-161-1/+3
| | | | | | | | | | | | | | | 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.
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+1
|
* fish: Allow -d UUID (specify libvirt domains by UUID).Richard W.M. Jones2011-05-061-1/+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
* df: Refresh virt-df(1) man page.Richard W.M. Jones2011-05-011-18/+31
| | | | | | | | Add examples. Refresh description. Use I<...> to refer to command line options.
* Remove ad-hoc run*locally scripts, replace with './run'Richard W.M. Jones2011-04-162-53/+0
| | | | | Remove all the run*locally scripts and replace with a single top level ./run shell script.
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-133-3/+7
| | | | | | | | | * 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-311-1/+4
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | 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.
* df: Skip final '/' character when calculating basename.Richard W.M. Jones2011-01-111-0/+2
| | | | | | | | | | Previously it was including the final '/' character when calculating the basename for the -a option eg: Filesystem Size Used Available Use% /Ubuntu1010x64:/dev/sda1 9.4G 2.3G 6.6G 25% With this patch the '/' is not printed.
* Remove several unused local variables.Richard W.M. Jones2010-12-101-1/+0
| | | | (Revealed by compiling under Debian where this is a warning).
* 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.
* df: Fix segfault when using virt-df -a filenameRichard W.M. Jones2010-11-301-0/+2
| | | | | If 'filename' doesn't contain a '/' character then virt-df was calculating NULL as the basename and later segfaulting.
* docs: Remove ref to L</add-drive-opts> wrongly copied into some man pages.Richard W.M. Jones2010-11-271-2/+1
|
* df: Missing direct dependency on libvirt.Richard W.M. Jones2010-11-261-2/+5
| | | | | virt-df has an (optional) direct dependency on libvirt. Because of libtool's over-linking behaviour this was being missed.
* df: Rewrite virt-df in C.Richard W.M. Jones2010-11-2510-0/+1638
| | | | | | | | | | | | I have diffed the output from the original virt-df with this new version, and they agree very closely. Some differences: - Old virt-df have a divide-by-zero error in cases where the number of used inodes was 0. New virt-df fixes this. - New virt-df uses gnulib human_readable library which displays numbers to 3 significant figures for -h output (old version used an ad hoc function).
* Move virt tools (virt-cat, virt-edit etc) into tools/ subdirectory.Richard Jones2009-10-193-463/+0
| | | | | | | | | | | | | | | | | | This moves the tool programs into a single directory: cat/* -> tools/virt-cat df/* -> tools/virt-df edit/* -> tools/virt-edit rescue/* -> tools/virt-rescue This in itself simplifies the build process because we only need one Makefile and one copy of 'run-locally'. 'run-*-locally' has become just 'run-locally' and takes an extra parameter which is the name of the tool, eg: run-locally cat [virt-cat params...] virt-inspector stays in its own directory, because this contains more than just a single Perl script.
* run-*-locally: The programs are now virt-[tool], not virt-[tool].plRichard Jones2009-10-011-1/+1
| | | | This fixes commit b488436cc54288fcae8988493749f2e6c87f274c.
* virt-df: Add note about parsing CSV.Richard Jones2009-09-241-2/+27
|
* Include virt tools in EXTRA_DIST.Richard Jones2009-09-231-1/+2
| | | | | | Partially revert b488436cc54288fcae8988493749f2e6c87f274c. It turns out that automake doesn't automatically place bin_SCRIPTS in EXTRA_DIST.
* Rename virt-[tool].pl as virt-[tool]Richard Jones2009-09-232-8/+4
|
* Check return value from readlink.Richard Jones2009-09-231-1/+1
|