uml/hostfs: Propagate dirent.d_type to filldir()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 27 Jan 2012 18:14:58 +0000 (19:14 +0100)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:52 +0000 (00:29 +0100)
commit3ee6bd8e8dc0c58b9ba5bab7ef8a7a131da346eb
treeb1050db82803495116ac255a2b6c755622bd1044
parentc0b79a90b1556a7e51d7a49a655eb60306f6258d
uml/hostfs: Propagate dirent.d_type to filldir()

Currently the (optional) d_type member in struct dirent is always
DT_UNKNOWN on hostfs, which may confuse buggy software using readdir().
Make sure to propagate its value from the underlying filesystem if it's
available there.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs.h
fs/hostfs/hostfs_kern.c
fs/hostfs/hostfs_user.c