GNOME Bugzilla – Bug 516520
[gnomevfs] Seeking support for non-local URIs
Last modified: 2008-02-15 05:22:53 UTC
Hi, currently gnomevfssrc doesn't support seeking at all for non local URIs. We have to open with GNOME_VFS_OPEN_RANDOM to get seeking support at all. Attached patch fixes this, please test very hard and report any issues :)
Created attachment 105267 [details] [review] gnome-vfs-seek.diff
Ok, so this is fixed now in gnome-vfs as it actually is a gnome-vfs bug :) While the docs say that one doesn't get seeking when GNOME_VFS_OPEN_RANDOM is not given no module other than http did this in the past but instead allowed seeking always. And then the http module failed to open an URI with _OPEN_RANDOM if the server does not support seeking while instead it should just fail on seeks then. This revision fixes it: http://svn.gnome.org/viewvc/gnome-vfs?view=revision&revision=5446 No changes to gnomevfssrc are necessary at all :)