summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-04 12:54:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-06 08:31:13 +0100
commit1455e221ae3023270a4716be6b47c038249955fd (patch)
tree4c9292c8244064ae28d4e56e95c93f9366c277b2 /common
parent20eea939a6fef5a02d55e83b997cd8c86607d83f (diff)
downloadbarebox-1455e221ae3023270a4716be6b47c038249955fd.tar.gz
barebox-1455e221ae3023270a4716be6b47c038249955fd.tar.xz
fs: devfs: forbid truncation when cdev has no truncate operation
When a cdev doesn't have a truncate callback then forbid truncation and fail with -EPERM. Before this we had always failed with -ENOSPC in this situation. We checked for f->fsdev->dev.num_resources being nonzero, but this check was absolutely meaningless. It goes back to ancient times when the resources of a device were automatically added to devfs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions