summaryrefslogtreecommitdiffstats
path: root/daemon/df.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix upload losing synchronization if root not mounted (RHBZ#576879).Richard Jones2010-04-171-2/+2
| | | | | | | | | | | | Modify the generator so that it can correctly handle early cancellation for Pathname|Device|.. parameters. This fixes the upload command, but consequently we need to fix the parameters for tar_in and t?z_in commands. This should also mean that 'win:' can now be used as the second argument of tar_in and t?z_in commands in guestfish, whereas previously this wouldn't have worked. Adds a regression test for the original problem.
* daemon: Don't need to prefix error messages with the command name.Richard Jones2010-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | The RPC stubs already prefix the command name to error messages. The daemon doesn't have to do this. As a (small) benefit this also makes the daemon slightly smaller. Code in the daemon such as: if (argv[0] == NULL) { reply_with_error ("passed an empty list"); return NULL; } now results in error messages like this: ><fs> command "" libguestfs: error: command: passed an empty list (whereas previously you would have seen ..command: command:..)
* avoid warning about old-style no-param function definitionJim Meyering2009-08-171-2/+2
| | | | | * daemon/df.c (do_df, do_df_h): Add "void". * sync.c (do_sync): Likewise.
* update all NEED_ROOT usesJim Meyering2009-08-131-2/+2
| | | | | | run this command: git grep -l -w NEED_ROOT|xargs perl -pi -e \ 's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* Add 'df' and 'df-h' commands.Richard W.M. Jones2009-06-291-0/+70
df and df-h commands can be used interactively to show disk space usage. Use existing statvfs command from programs.