Re: ceph mimic and samba vfs_ceph

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

 



On Wed, May 8, 2019 at 10:05 AM Ansgar Jazdzewski
<a.jazdzewski@xxxxxxxxxxxxxx> wrote:
>
> hi folks,
>
> we try to build a new NAS using the vfs_ceph modul from samba 4.9.
>
> if i try to open the share i recive the error:
>
> May  8 06:58:44 nas01 smbd[375700]: 2019-05-08 06:58:44.732830
> 7ff3d5f6e700  0 -- 10.100.219.51:0/3414601814 >> 10.100.219.11:6789/0
> pipe(0x7ff3cc00c350 sd=6 :45626 s=1 pgs=0 cs=0 l=0
> c=0x7ff3cc008980).connect protocol feature mismatch, my
> 27ffffffefdfbfff < peer 27fddff8e
> fa4bffb missing 200000
>
> so my guess is that i need to compile samba with the libcephfs from
> mimic but i'am not able to because of this compile-error:
>
> ../../source3/modules/vfs_ceph.c: In function ‘cephwrap_stat’:
> ../../source3/modules/vfs_ceph.c:835:11: warning: implicit declaration
> of function ‘ceph_stat’; did you mean ‘ceph_statx’?
> [-Wimplicit-function-declaration]
>   result = ceph_stat(handle->data, smb_fname->base_name, (struct stat
> *) &stbuf);
>            ^~~~~~~~~
>            ceph_statx
> ../../source3/modules/vfs_ceph.c: In function ‘cephwrap_fstat’:
> ../../source3/modules/vfs_ceph.c:861:11: warning: implicit declaration
> of function ‘ceph_fstat’; did you mean ‘ceph_fstatx’?
> [-Wimplicit-function-declaration]
>   result = ceph_fstat(handle->data, fsp->fh->fd, (struct stat *) &stbuf);
>            ^~~~~~~~~~
>            ceph_fstatx
> ../../source3/modules/vfs_ceph.c: In function ‘cephwrap_lstat’:
> ../../source3/modules/vfs_ceph.c:894:11: warning: implicit declaration
> of function ‘ceph_lstat’; did you mean ‘ceph_statx’?
> [-Wimplicit-function-declaration]
>   result = ceph_lstat(handle->data, smb_fname->base_name, &stbuf);
>            ^~~~~~~~~~
>            ceph_statx
>
> maybe i can disable a feature in cephfs to avoid the error in the first place?

Hmmm unfortunately it looks like the public functions got changed and
so there isn't the standard ceph_stat any more.

Fixing the wiring wouldn't be that complicated if you can hack on the
code at all, but there are some other issues with the Samba VFS
implementation that have prevented anyone from prioritizing it so far.
(Namely, smb forks for every incoming client connection, which means
every smb client gets a completely independent cephfs client, which is
very inefficient.)
-Greg

>
> thanks for your help,
> Ansgar
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux