samba/smb share a osxfuse mount

698 views
Skip to first unread message
Message has been deleted

Gregory Dymarek

unread,
Oct 19, 2012, 1:52:45 PM10/19/12
to osxfus...@googlegroups.com
Hi,

I'm in a process of developing one vfs that is intended to be used on OSX. I'm on 10.7.5. All good and works fine, but I am not able to share it via smb nor afp.
The directory (mount) becomes not accessible via smb/aft as soon as I mount my filesystem to it.

Firstly I thought this is to do with samba configuration itself. Google'd up a configuration to disable symlinks and this allows me to browse symlinks via samba but my mount it still not accessible (so not difference). My second attempt was to tweak getattr function so it returns the same arguments for '/' of the vfs as one would expect for a typical directory.

stat -s testfs (not mounted):
st_dev=234881026 st_ino=5881770 st_mode=040755 st_nlink=2 st_uid=501 st_gid=20 st_rdev=0 st_size=68 st_atime=1350601847 st_mtime=1350479298 st_ctime=1350582953 st_birthtime=1350479298 st_blksize=4096 st_blocks=0 st_flags=0

stat -s testfs (vfs mounted):
st_dev=788529171 st_ino=1 st_mode=040755 st_nlink=3 st_uid=501 st_gid=20 st_rdev=0 st_size=6 st_atime=1350668792 st_mtime=1350668792 st_ctime=1350668792 st_birthtime=1205930653 st_blksize=65536 st_blocks=8 st_flags=0

This did not help either. I cannot access 'testfs' via samba. So I am out of ideas in here..

Btw. I also tried sshfs and mounted it to my testfs. Samba/afp could not access this directory/mount either.. So it looks like to me that this is more fundamental issue rather than some misconfiguration.

When mounting my vfs and sshfs I always used -o allow_other (having added 'user_allow_other' to /etc/fuse.conf) and also tried it with -o local and without it... there was no difference. Still could not access it.


Any ideas? Is it at all possible?

Any help is greatly appreciated!
Gregory

Claudio Ambrosini

unread,
Oct 28, 2012, 12:08:28 PM10/28/12
to osxfus...@googlegroups.com
I have the same trouble with my, home made, ApertureFS (version of modified iPhotoFS) for sharing Aperture photos to Windows!
I'm able to access to the volume through samba but i see an empty volume.
I have set all curl permissions to 555 for all folders (aperture projects) and 444 for all media files.
The mount happen with options: rdolny,local,default_permissions,allow_other 

Martin Greenwood

unread,
Oct 25, 2013, 6:26:01 AM10/25/13
to osxfus...@googlegroups.com
Gregory,

Did you find a way to share FUSE volumes over the network?

Martin

Melby Ruarus

unread,
Nov 22, 2013, 4:37:19 AM11/22/13
to osxfus...@googlegroups.com
I'm having the exact same problem with the loopback filesystem. I believe it has to do with the fact that apple has introduced a restriction into their file server where it cannot be used to re-share an existing network share. This leads me to think that fuse is presenting itself to the operating system as a network file system or another type of filesystem which apple is preventing being used for sharing.

I've been attempting to use osxfuse specifically to work around this restriction, as I have a filesystem which I need to be able to re-share over afp (I know thats a bad idea, but i'm running out of options).

Thorsten Barth

unread,
May 22, 2014, 8:33:20 AM5/22/14
to osxfus...@googlegroups.com
Hi,

I managed to share a sub-folder of a mounted OSXFuse file system over AFP on OSX Mavericks Server. The underlying filesystem was "BoxCryptor" in my case, but it didn´t work out for me: Read access works fine, but writes always led to access errors and zero-length files.

I also intend to try it with XtreemFS, but still didn´t have time. Do you have news on this?

Regards
Thorsten
Reply all
Reply to author
Forward
0 new messages