Unionfs: fix ->readdir
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:57:43 +0000 (14:57 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 01:24:44 +0000 (20:24 -0500)
commit1e67ff66faba82605b8b39a59c5eff37dceb7878
treeac05d817c74b90c5718861af18109e2b9416e47a
parent630f08b6304bb8d75677d0c640791ed4368573b8
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