Page MenuHomeFreeBSD

pseudofs: Ignore unsupported command in vop_setattr.
ClosedPublic

Authored by johalun on May 28 2019, 8:28 PM.
Tags
None
Referenced Files
F167997169: D20451.id.diff
Tue, Aug 25, 8:18 PM
F167972031: D20451.diff
Tue, Aug 25, 4:57 PM
F167964007: D20451.id58009.diff
Tue, Aug 25, 3:54 PM
Unknown Object (File)
Tue, Aug 25, 1:43 AM
Unknown Object (File)
Tue, Aug 25, 1:33 AM
Unknown Object (File)
Sun, Aug 23, 5:45 PM
Unknown Object (File)
Sun, Aug 23, 5:14 PM
Unknown Object (File)
Thu, Aug 20, 5:43 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