From: Bastien N. <ha...@ha...> - 2011-03-19 18:53:01
|
On Sat, 2011-03-19 at 13:24 -0400, Adam Lewis wrote: > I would like to lift this function into the public API as well as > submit a bugfix for properly detecting free space and capacity on > gvfs-fuse mounted devices. Basically the current mechanism of calling > statvfs does not work for devices mounted this way (iphone in ubuntu > 10.10 mounts this way). The reason I would like to lift this function > into the public API is so that other applications depending on libgpod > can have a more reliable way of accessing device capacity and free > space that works. Currently gpodder uses statvfs as well, which leads > to it thinking the device has no free space. > > Let me know if this seems like I'm heading in the right direction as > I'm not that familiar with libgpod. The patch will essentially forward > to a glib file function that properly handles gvfs-fuse mounted > filesystems. Given that libgpod has historically been quite reticent to using gvfs, you might want to look at adding statvfs support to gvfs-fuse instead, which would "fix" support for more than just the AFC backend. |