Re: btrfs and default directory link count

2013-11-08 Thread Andreas Schneider
On Friday 08 November 2013 06:24:01 cwillu wrote: > On Fri, Nov 8, 2013 at 5:07 AM, Andreas Schneider wrote: > > Hello, > > > > I did run the Samba testsuite and have a failing test > > (samba.vfstest.stream_depot). It revealed that it only fails on btrfs. The > > reason is that a simple check f

Re: btrfs and default directory link count

2013-11-08 Thread cwillu
On Fri, Nov 8, 2013 at 5:07 AM, Andreas Schneider wrote: > Hello, > > I did run the Samba testsuite and have a failing test > (samba.vfstest.stream_depot). It revealed that it only fails on btrfs. The > reason is that a simple check fails: > > if (smb_fname_base->st.st_ex_nlink == 2) > > If you cr

btrfs and default directory link count

2013-11-08 Thread Andreas Schneider
Hello, I did run the Samba testsuite and have a failing test (samba.vfstest.stream_depot). It revealed that it only fails on btrfs. The reason is that a simple check fails: if (smb_fname_base->st.st_ex_nlink == 2) If you create a directory on btrfs and check stat: $ mkdir x $ stat x File: ‘