Ceph VFS

Richard Sharpe realrichardsharpe at gmail.com
Fri May 17 03:12:24 MDT 2013


On Fri, May 17, 2013 at 1:43 AM, Ulrich Schinz <ulrich.schinz at ksfh.de> wrote:
> Hi there,
>
> I'd like to setup a samba with a ceph-cluster as datastore.
>
> I found some patches via google, better say I found a mailinglist-mail.
> There is mentioned, that there is an option to get ceph running with samba.
>
> https://lists.samba.org/archive/samba-technical/2011-August/079049.html
> https://lists.samba.org/archive/samba-technical/2011-August/079026.html
>
> Are these patches available for samba4 as well?
>
> As written, security descriptors are saved in xattrs... I think I tried
>
> this as well, but I can't get it working.
>
> My share is defined with vfs option = acl_xattr in hope that this manages
> saving acls to xattr... but changing attributes from windows
> produces error:
>
> set_canon_ace_list: sys_acl_set_file type file failed for file Neues
> Textdokument.txt (Operation not supported).

1. The Ceph VFS is not yet in Samba 4.0.x. Please file a bug at
bugzilla.samba.org so we can get it into the next Samba 4.0.x release.
It will not get into 4.0.6, because that is already frozen. We will
have to cherry-pick the changes into the Samba 4.0.x testing branch
and then it will get into 4.0.7.

2. The problem you are running into is due to a small bug in the VFS
that relates to the way that acl_xattr works. Unfortunately, it calls
SMB_VFS_NEXT_FSET_NT_ACL with the SD that it is trying to store. This
gets past the Ceph VFS and back into Samba which tries to turn it into
a POSIX ACL and store that, but that fails.

IMO, the simplest way to handle this is to implement fset_nt_acl in
the Ceph VFS and ignore the call but return succes. I have done this
elsewhere and it works well.

I can set up a Ceph build environment on my Samba dev system when I
get back to the US and do the small amount of work required to make
sure this builds in Samba 4.0.x.

In the mean-time, you should try to grab the Ceph VFS module that is
in the Master branch.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list