Unionfs: fix ->readdir
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:58:20 +0000 (14:58 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:53:41 +0000 (21:53 -0500)
commitbfc3e85c25e95dabdb5dd5d5a9e8724615f65882
tree0e2af08f4bd1c414ca9a6ab59927ac05dcbbf618
parent485ab484b5b29ff4a8df5d5829ecf50a118101d9
Unionfs: fix ->readdir

It's enough to use llseek to set lower dir pos.  No need to also set
lower_file->f_pos directly, as it breaks readdir for ext4 and other
ext-based file systems.  Reported by Vaibhav Nagarnaik and Ted Ts'o.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/dirfops.c