Page MenuHomeFreeBSD

pseudofs: Ignore unsupported command in vop_setattr.
ClosedPublic

Authored by johalun on May 28 2019, 8:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 9, 11:52 PM
Unknown Object (File)
Fri, Jun 6, 10:57 AM
Unknown Object (File)
Wed, May 28, 1:18 AM
Unknown Object (File)
May 5 2025, 6:03 PM
Unknown Object (File)
Apr 25 2025, 5:49 AM
Unknown Object (File)
Apr 17 2025, 12:59 AM
Unknown Object (File)
Apr 14 2025, 7:59 AM
Unknown Object (File)
Apr 14 2025, 1:37 AM
Subscribers
None

Details

Summary

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.

As per mailing list discussion, this patch simply ignores the
error and returns 0 instead.

Test Plan

Tested and this patch solves this issue for lindebugfs.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable