GNOME Bugzilla – Bug 770545
It is not possible to execute backend manually with a concrete mount_prefix
Last modified: 2016-08-29 14:13:51 UTC
Created attachment 334355 [details] [review] common: Handle mount_prefix by g_mount_spec_set mount_prefix is set to the value "/export" if you e.g. call the following: gvfs-mount nfs://localhost/export Unfortunatelly, it is not possible to execute backend manually with a concrete mount_prefix. Handle key "prefix" as mount_prefix, so you can now execute backend manually with prefix, e.g.: /usr/libexec/gvfsd-nfs host=localhost prefix=/export
Review of attachment 334355 [details] [review]: Should we maybe call g_free(value) in case copy is FALSE (if, e.g. someone calls g_mount_spec_take(spec, "prefix", value)). Also we ignore the len argument, most likely just an optimisation unless someone calls the function with a non-null-terminated char buffer.
Created attachment 334367 [details] [review] common: Handle mount_prefix by g_mount_spec_set Thanks for a review. This should handle the problems you mentioned...
Comment on attachment 334367 [details] [review] common: Handle mount_prefix by g_mount_spec_set commit a4ff9a5edb043c8245b9f2fc3ebe452272dd3c0d