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 01:43:48 +0000 (20:43 -0500)
commit149a8b445f5596ab3873e5bd5555956f5b849336
tree76495279eea326f4a64fcb006d26c625ea735581
parent1bd68cf8447e17ef32878166c4291157fad6227c
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