Up to [cvs.NetBSD.org] / src / sys / miscfs / fdesc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: tls-maxphys-base
Revision 1.121 / (download) - annotate - [select for diffs], Fri Jul 25 08:20:52 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base
Branch point for: netbsd-7
Changes since 1.120: +4 -2
lines
Diff to previous 1.120 (colored)
Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can find. The filesystem ones all call genfs_eopnotsupp - right now I am only implementing the plumbing and we can implement fallocate and/or fdiscard for files later. The device ones call spec_fallocate (which is also genfs_eopnotsupp) and spec_fdiscard, which dispatches to the device-level op. The fifo ones all call vn_fifo_bypass, which also ends up being EOPNOTSUPP.