HomeFreeBSD

pseudofs: Ignore unsupported commands in vop_setattr.

Description

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
MFC after: 1 week
Differential Revision: D20451

Details

Provenance
johalunAuthored on
Reviewer
imp
Differential Revision
D20451: pseudofs: Ignore unsupported command in vop_setattr.
Parents
rS348337: style.9: Correct usage's definition to match its declaration
Branches
Unknown
Tags
Unknown