summaryrefslogtreecommitdiffstats
path: root/src/inspect_fs_unix.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-15 09:43:04 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-15 16:15:44 +0000
commitd9bdb9587b4e1cad0c3e9997ea7d2b2a07aed0ad (patch)
tree0e1745b31d42da17281edf59c8b1dc11480e84fd /src/inspect_fs_unix.c
parent7934ea2395d2a417fbc20efc22573113f7ae9d7a (diff)
downloadlibguestfs-d9bdb9587b4e1cad0c3e9997ea7d2b2a07aed0ad.tar.gz
libguestfs-d9bdb9587b4e1cad0c3e9997ea7d2b2a07aed0ad.tar.xz
libguestfs-d9bdb9587b4e1cad0c3e9997ea7d2b2a07aed0ad.zip
New API: zero_free_space: zero free space in a filesystem.
Add an API for doing what virt-sparsify was doing: freeing up free space in a filesystem. The current implementation is simple-minded: we create a file, fill it with zeroes until we run out of space, then delete the file. However the description leaves it open to do a better implementation, eg. using sparsification support that is currently being worked on in ext4 and qemu. The implementation also sends progress notifications, which is an advantage over the old 'dd' method.
Diffstat (limited to 'src/inspect_fs_unix.c')
0 files changed, 0 insertions, 0 deletions