summaryrefslogtreecommitdiffstats
path: root/df
Commit message (Collapse)AuthorAgeFilesLines
* build: Set TMPDIR for local testing.Richard W.M. Jones2011-08-171-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. Cherry picked from commit f7d18c84dde596699ffc5100fec2cf7b0d582450 and backported to stable-1.8.
* virt-df: Re-add documentation for --csv option.Richard W.M. Jones2011-07-271-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. (cherry picked from commit 01f6bce19dbfaf42fa4908683f3cc8785585d023)
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-081-0/+1
| | | | | Fix required by gcc 4.6.0. (cherry picked from commit a9d6b948b590f58023a97dddd76302e40d49d2e2)
* df: Skip final '/' character when calculating basename.Richard W.M. Jones2011-03-081-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. (cherry picked from commit e5220b26f51d5912371424ab6dfbdb46ce6aa170)
* 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
|
* Create manpage atomically.Richard Jones2009-09-231-1/+1
| | | | Don't fail with a partial file if disk full, etc.
* Replace @...@ with $(...) in these common Makefile.am files.Richard Jones2009-09-231-4/+4
|
* Remove guestfs_wait_ready (turn it into a no-op).Richard Jones2009-09-211-1/+0
| | | | | | | | | | | | | | This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-73/+73
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* df: Fix alignment of columns.Richard Jones2009-07-291-1/+1
|
* Make Perl strings translatable using perl-libintl.Richard Jones2009-07-151-10/+11
| | | | | | | | | All Perl strings are now marked as translatable using __"string" or __x("string {placeholder}", placeholder => $_). Perl strings now get copied to the PO files. The po/POTFILES.in file is now updated automagically whenever we add new *.c, *.pl or *.pm files into the repository.
* Add --version options to virt-df, virt-inspector and virt-v2v.Richard Jones2009-07-101-0/+15
|
* Working version of virt-df.Richard Jones2009-07-101-42/+213
|
* Added framework for 'virt-df' command.Richard Jones2009-07-103-0/+255