Add G_FILE_ATTRIBUTE_FILESYSTEM_USED to get exact used space
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Jan 2012 02:49:08 +0000 (21:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Jan 2012 02:49:08 +0000 (21:49 -0500)
commit00c00e2f3f3194202877e54a2429bd1a4f9c5526
tree1a625ef26f385fb62c146b8080452c79c2c72dba
parent31960257a6f52a4ec92d70986969f3f7ce336c4c
Add G_FILE_ATTRIBUTE_FILESYSTEM_USED to get exact used space

This is implemented by with statfs_buffer.f_bavail (free blocks
for unprivileged users) as a default way to retrieve real free space.
Based on a patch by Marcus Carlson, bug 625751.
docs/reference/gio/gio-sections.txt
gio/gfileattribute.c
gio/gfileinfo.h
gio/glocalfile.c