Unionfs: fix ->readdir
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:54:11 +0000 (14:54 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 9 May 2014 18:54:11 +0000 (14:54 -0400)
commitea37a67f579776d0b11434776910c8b1b03df57f
tree1bc3b294eb798125f9bf605be411fd31f1dd44be
parent68e3e2fa3e81547742800ac529d4d88116f8cd82
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