Re: Missing files in listing when sharing ZFS directory over Samba

2007-11-30 Thread Jeremy Chadwick
On Sat, Dec 01, 2007 at 04:28:10AM +0300, Jonathan Stewart wrote:
> Jeremy Chadwick wrote:
> > On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
> >> Has anyone else noticed files missing when browsing Samba shares of ZFS
> >> directories?
> > 
> > http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html
> 
> This sounds like my problem except a refresh on Windows does not restore
> the missing files, nor did any of the other things I mentioned in the
> original email.

The interesting thing is that I use Samba to share many directories on a
ZFS filesystem, and I haven't run into the problem you or the other
poster have mentioned.  I wonder what's different about our setups that
could explain what's going on...

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing files in listing when sharing ZFS directory over Samba

2007-11-30 Thread Jonathan Stewart
Jeremy Chadwick wrote:
> On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
>> Has anyone else noticed files missing when browsing Samba shares of ZFS
>> directories?
> 
> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html

This sounds like my problem except a refresh on Windows does not restore
the missing files, nor did any of the other things I mentioned in the
original email.

> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-08/msg00596.html
> http://lists.freebsd.org/pipermail/freebsd-current/2007-November/079607.html

I remember hitting this when it first became known, the issue I have now
is different.

Thanks,
Jonathan
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing files in listing when sharing ZFS directory over Samba

2007-11-30 Thread Jeremy Chadwick
On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
> Has anyone else noticed files missing when browsing Samba shares of ZFS
> directories?

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-08/msg00596.html

http://lists.freebsd.org/pipermail/freebsd-current/2007-November/079607.html

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing files in listing when sharing ZFS directory over Samba

2007-11-30 Thread Jonathan Stewart
Jeremy Chadwick wrote:
> On Sat, Dec 01, 2007 at 04:28:10AM +0300, Jonathan Stewart wrote:
>> Jeremy Chadwick wrote:
>>> On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
 Has anyone else noticed files missing when browsing Samba shares of ZFS
 directories?
>>> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html
>> This sounds like my problem except a refresh on Windows does not restore
>> the missing files, nor did any of the other things I mentioned in the
>> original email.
> 
> The interesting thing is that I use Samba to share many directories on a
> ZFS filesystem, and I haven't run into the problem you or the other
> poster have mentioned.  I wonder what's different about our setups that
> could explain what's going on...

Think I should take this over to the Samba list as well, see if they
have any suggestions?  If I really have to I can try adding some printf
calls or something but my C skills are very rudimentary so it would take
me a lot of time.  I'll probably try to get a trace with wireshark today
as well see if that has anything useful in it.

Jonathan
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing files in listing when sharing ZFS directory over Samba

2007-12-04 Thread Jonathan Stewart
Jeremy Chadwick wrote:
> On Sat, Dec 01, 2007 at 04:28:10AM +0300, Jonathan Stewart wrote:
>> Jeremy Chadwick wrote:
>>> On Fri, Nov 30, 2007 at 10:18:32PM +0300, Jonathan Stewart wrote:
 Has anyone else noticed files missing when browsing Samba shares of ZFS
 directories?
>>> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-11/msg00501.html
>> This sounds like my problem except a refresh on Windows does not restore
>> the missing files, nor did any of the other things I mentioned in the
>> original email.
> 
> The interesting thing is that I use Samba to share many directories on a
> ZFS filesystem, and I haven't run into the problem you or the other
> poster have mentioned.  I wonder what's different about our setups that
> could explain what's going on...

I don't know what the difference might be but I did some digging and
found https://bugzilla.samba.org/show_bug.cgi?id=4715#c25

Setting "directory name cache size = 0" fixes the problem for me,
apparently it's a performance killer but I don't have any directories
with huge numbers of entries and the server is very overpowered for what
it's used for.

It's a workaround not a fix but it works for me till someone that has a
better understanding of the systems involved fixes it correctly.  My
basic understanding (which may be wrong) is that Samba expects a certain
thing relating to listing directories from FreeBSD that it does not do
but most Linux distros do.  The bug report link has vastly more detailed
information.

Jonathan

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing files in listing when sharing ZFS directory over Samba

2007-12-04 Thread Jeremy Chadwick
On Wed, Dec 05, 2007 at 05:10:49AM +0300, Jonathan Stewart wrote:
> I don't know what the difference might be but I did some digging and
> found https://bugzilla.samba.org/show_bug.cgi?id=4715#c25

Interestingly enough, there's already been a statement from Terry
Lambert about the problem, and it's documented in comment 22:

https://bugzilla.samba.org/show_bug.cgi?id=4715#c22

Additionally, the bug seems to imply that a future release of Samba will
simply disable the entire BSD-specific workaround, addressing the issue
of missing files -- but will have a tremendous impact on performance
when it comes to directories with many files.

In general, I really don't like the direction that bug is going.  By
that I mean, it gives me the impression that there's a ton of
OS-specific code within the daemon, and the solution for them may be to
add *another* layer of abstraction (by detecting the specific filesystem
used on a share, and using different code per filesystem).  I think this
is bad.

Julian, has there been any progress to resolve this outside of what's
shown in the bug?  I see your name mentioned in comment #6...  :-)

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"