Re: Changing the default GVFS backend mount point.



Hi Alexander,

Thanks for your help.

I had tried the mount operation to alter the standard mount point ("/" by adding the code in do_mount function. I tried by changing the "mount_prefix" variable (/usr/local/share) of GMountSpec with the following function.

g_mount_spec_set_mount_prefix ().

However, my backend daemon mounts to "/" root only. It failed to mount at "/usr/local/share".

I was wondering for the function to change the standard mount point.

Thanks in advance for your help.

- CM




On Mon, May 25, 2009 at 2:19 PM, Alexander Larsson <alexl redhat com> wrote:
On Fri, 2009-05-22 at 14:57 +0530, CM Reddy wrote:
> Hi
> Gvfs-bakend local test application always mount's the root "/" as
> default mount point. However, I need to mount some other location
> (say /usr/local/share) as my default mount point. I tried to change
> mount prefix to /usr/local/share, but it failed mount to the said
> location.
>
> What is usage of the mount_prefix in GMountSpec ?
>
> GVFS-LS shows the following output:
>
>  # gvfs-mount -l
> Mount(0): localtest -> localtest:///
>
> What should additional steps do I need add in do_mount() function to
> alter the default mount point ?
>
> Any help will be highly appreciated.

localtest: is just a small test thing. It doesn't do much and what it
does is pretty hardcoded. For instance, there is no way currently to do
what you want. It should be easy for you to add to the code though.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]