PS I start to use this patches with samba 4.1. IMHO some of problems may (or must) be solved not inside vfs code, but outside - in samba kernel, but I still use both in samba 4.2.3 without verification. Dzianis Kahanovich пишет: > I use cephfs over samba vfs and have some issues. > > 1) If I use >1 stacked vfs (ceph & scannedonly) - I have problems with file > order, but solved by "dirsort" vfs ("vfs objects = scannedonly dirsort ceph"). > Single "ceph" vfs looks good too (and I use it single for fast internal shares), > but you can try add "dirsort" ("vfs objects = dirsort ceph"). > > 2) I use 2 my patches: > https://github.com/mahatma-kaganovich/raw/tree/master/app-portage/ppatch/files/extensions/net-fs/samba/compile > - to support "max disk size" and to secure chown. About chown: I unsure about > strict follow standard system behaviour, but it works for me, without - user can > chown() even to root. I put first (max disk size) patch into samba bugzilla > times ago, second patch - no, I unsure about it correctness, but sure about > security hole. > > Jörg Henne пишет: >> Hi all, >> >> the faq at http://ceph.com/docs/cuttlefish/faq/ mentions the possibility to >> run export a mounted cephfs via samba. This combination exhibits a very >> weird behaviour, though. >> >> We have a directory on cephfs with many small xml snippets. If I repeadtedly >> ls the directory on Unix, I get the same answer each and every time: >> >> root@gru:/mnt/regtest/regressiontestdata2/assets# while true; do ls|wc -l; >> sleep 1; done >> 851 >> 851 >> 851 >> ... and so on >> >> If I do the same on the directory exported and mounted via SMB under Windows >> the result looks like that (output generated unter cygwin, but effect is >> present with Windows Explorer as well): >> >> $ while true; do ls|wc -l; sleep 1; done >> 380 >> 380 >> 380 >> 380 >> 380 >> 1451 >> 362 >> 851 >> 851 >> 851 >> 851 >> 851 >> 851 >> 851 >> 851 >> 1451 >> 362 >> 851 >> 851 >> 851 >> ... >> >> The problem does not seem to be related to Samba. If I copy the files to an >> XFS volume and export that, things look fine. >> >> Thanks >> Joerg Henne >> >> _______________________________________________ >> ceph-users mailing list >> ceph-users@xxxxxxxxxxxxxx >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >> > > -- WBR, Dzianis Kahanovich AKA Denis Kaganovich, http://mahatma.bspu.unibel.by/ _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com