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)
Wed, Apr 17, 7:52 PM
Unknown Object (File)
Tue, Apr 16, 6:55 AM
Unknown Object (File)
Thu, Apr 11, 5:36 PM
Unknown Object (File)
Dec 22 2023, 10:06 PM
Unknown Object (File)
Sep 26 2023, 3:43 AM
Unknown Object (File)
Apr 23 2023, 11:06 PM
Unknown Object (File)
Mar 4 2023, 12:18 AM
Unknown Object (File)
Feb 7 2023, 8:36 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 24569
Build 23355: arc lint + arc unit