Add a test case that verifies that it is not possible to truncate a
file opened read-only through fdescfs in default mode, and another that
verifies that it is possible when fdescfs was mounted in nodup mode.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 78860 Build 75743: arc lint + arc unit
Event Timeline
Comment Actions
It might make sense to add two more tests.
For default mode, if the original file was opened for write, but then file permissions were changes to remove write, that truncation still works.
For nodup node, if the file permissions do not allow write, truncation is not allowed.