summaryrefslogtreecommitdiffstats
path: root/daemon/xfs.c
Commit message (Collapse)AuthorAgeFilesLines
* syntax: xfs: Rewrite split_strdup function to avoid use of strncpy.Richard W.M. Jones2012-09-151-6/+8
| | | | Found by 'make syntax-check'.
* syntax: xfs: Remove useless if before free.Richard W.M. Jones2012-09-151-4/+4
| | | | Found by running 'make syntax-check'.
* daemon: collect list of called external commandsOlaf Hering2012-08-301-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | guestfsd calls many different tools. Keeping track of all of them is error prone. This patch introduces a new helper macro to put the command string into its own ELF section: GUESTFSD_EXT_CMD(C_variable, command_name); This syntax makes it still possible to grep for used command names. The actual usage of the collected list could be like this: objcopy -j .guestfsd_ext_cmds -O binary daemon/guestfsd /dev/stdout | tr '\0' '\n' | sort -u The resulting output will be used to tell mkinitrd which programs to copy into the initrd. Signed-off-by: Olaf Hering <olaf@aepfle.de> RWMJ: - Move str_vgchange at request of author. - Fix snprintf call in daemon/debug.c
* NEW API:xfs:xfs_repairWanlong Gao2012-08-301-0/+122
| | | | | | | | | | Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Fix non-error return path so it doesn't send two replies. - Document return code.
* xfs_growfs: drop the unstructed outputWanlong Gao2012-08-211-7/+6
| | | | | | | Just drop the unstructed output since we can get the structed info from xfs_info instead. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New API: xfs: xfs_adminWanlong Gao2012-08-211-0/+69
| | | | | | | | | | | Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Remove printuuid, printlabel, since they don't change any settings. - Adjusted the documentation. - Fix the tests.
* xfs: fix a possible memory leakWanlong Gao2012-08-111-0/+1
| | | | | | free out when failure. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* xfs: add new api xfs-growfsWanlong Gao2012-08-021-0/+111
| | | | | | New api xfs_growfs for expanding a XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* xfs_info: resolve device when doing xfs_info on a deviceWanlong Gao2012-07-241-13/+8
| | | | | | | Resolve device first, like do_umount. Use Dev_or_Path. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New API: add new api xfs_infoWanlong Gao2012-07-181-0/+355
Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Updated po/POTFILES. - Use xfs_ prefix for all struct fields. - Return uninitialized fields as -1 / empty string. - Copyedit the description.