]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348338:
authorJohannes Lundberg <johalun@FreeBSD.org>
Tue, 4 Jun 2019 01:00:30 +0000 (01:00 +0000)
committerJohannes Lundberg <johalun@FreeBSD.org>
Tue, 4 Jun 2019 01:00:30 +0000 (01:00 +0000)
commitf48ddc3fe4e71a99dd5e435bfd0cd02e5ac35cc5
tree8be3be991f51f5d5963dea74be4a4a901d5538ee
parentb7588f70992cdd61e74116c796cda011287a3dbb
MFC r348338:
pseudofs: Ignore unsupported commands in vop_setattr.

Users of pseudofs (e.g. lindebugfs), should be able to receive
input from command line via commands like "echo 1 > /path/to/file".
Currently this fails because sh tries to truncate the file first and
vop_setattr returns not supported error for this. This patch simply
ignores the error and returns 0 instead.

Reviewed by: imp (mentor), asomers
Approved by: imp (mentor), asomers
Differential Revision: D20451
sys/fs/pseudofs/pseudofs_vnops.c