Fix: d_type validity is not guaranteed on all nfs versions
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 17 Mar 2016 18:56:02 +0000 (14:56 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Apr 2016 16:58:15 +0000 (12:58 -0400)
commitcda2823d3fdefcb802cdaba6cbdd6aaafd6659c3
tree614f4c92da1da10d2f608db139d23f3cb7dfe2c6
parentf880b369cd971e697cb23fa687e9065d5e2b629e
Fix: d_type validity is not guaranteed on all nfs versions

When using lttng-crash on files mounted on a nfs mount the d_type from
the dirent struct is not necessarily set and results in a DT_UNKNOWN
d_type.

stat() provides the valid information on an nfs mount.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-crash/lttng-crash.c
This page took 0.026248 seconds and 4 git commands to generate.