[PATCH] btrfs: fix directory offsets for '.' and '..' entries

2011-09-11 Thread Grazvydas Ignotas
e 256 directory24 2 . 256 directory24 2 .. 257 regular 24 3 a 258 regular 24 2147483647 b Fix this by passing correct offsets to filldir(). Signed-off-by: Grazvydas Ignotas --- fs/btrfs/inode.c |5 ++--- 1 files changed, 2

[PATCH] xfstests: add new getdents test

2011-09-11 Thread Grazvydas Ignotas
The test checks if no duplicate d_off values are returned and that those values are seekable to the right inodes. Signed-off-by: Grazvydas Ignotas --- 257 | 56 +++ 257.out |2 + group |1 + src/Makefile|2

Re: [PATCH] btrfs: fix directory offsets for '.' and '..' entries

2011-09-11 Thread Grazvydas Ignotas
On Mon, Sep 12, 2011 at 12:06 AM, Christoph Hellwig wrote: > On Sun, Sep 11, 2011 at 11:33:36PM +0300, Grazvydas Ignotas wrote: >> Currently getdents syscall returns wrong offset for '.' directory entry, >> which confuses some programs like wine. This can be observed w

Re: [PATCH] xfstests: add new getdents test

2011-09-23 Thread Grazvydas Ignotas
On Thu, Sep 22, 2011 at 11:18 PM, Alex Elder wrote: > On Mon, 2011-09-12 at 03:19 +0300, Grazvydas Ignotas wrote: >> The test checks if no duplicate d_off values are returned and that >> those values are seekable to the right inodes. >> >> Signed-off-by: Grazvydas Ig