summaryrefslogtreecommitdiffstats
path: root/common/state/backend_bucket_direct.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-09-05 09:44:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-06 13:55:16 +0200
commitd79a81736f64eef5d19396ad04ee9391bc384a8e (patch)
tree55a6a2de53274e6885bc2cf544064bd1311a7e11 /common/state/backend_bucket_direct.c
parenteed363f4479795a0d005dfd40d11a1936e62ab40 (diff)
downloadbarebox-d79a81736f64eef5d19396ad04ee9391bc384a8e.tar.gz
barebox-d79a81736f64eef5d19396ad04ee9391bc384a8e.tar.xz
fs: Don't bother filesystems without link support with additional stat() calls
In __canonicalize_path() we only call stat() to know if the path is a link or not. When the filesystem doesn't support links we already know that it's not a link, so we do not need to call stat(). This helps the tftp filesystem since the parent directories of a file to be opened won't be stat()ed anymore, something tftp does not support. Fixes: a602bebc fs: Implement links to directories Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/backend_bucket_direct.c')
0 files changed, 0 insertions, 0 deletions