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)
Fri, Jan 3, 3:07 AM
Unknown Object (File)
Thu, Jan 2, 2:12 AM
Unknown Object (File)
Dec 17 2024, 12:13 PM
Unknown Object (File)
Oct 4 2024, 4:06 AM
Unknown Object (File)
Oct 3 2024, 12:13 PM
Unknown Object (File)
Oct 1 2024, 1:08 PM
Unknown Object (File)
Oct 1 2024, 8:27 AM
Unknown Object (File)
Oct 1 2024, 6:59 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