Re: libgpod itdb_device_get_storage_info

Bastien Nocera <[email protected]>
Newsgroups gmane.comp.ipod.gtkpod
Message-ID <[email protected]>
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.


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.