Module Name: src Committed By: martin Date: Wed Dec 21 09:33:17 UTC 2022
Modified Files: src/sys/uvm [netbsd-10]: uvm_swap.c Log Message: Pull up following revision(s) (requested by chs in ticket #13): sys/uvm/uvm_swap.c: revision 1.207 swap: disallow user opens of swap block device the swap/drum block device was never intended to allow user opens, but when the internal VOP_OPEN() in uvm_swap_init() was added back in rev 1.135, the d_open method was changed from always-fail to always-succeed in order to allow the new initial internal open. this had the side effect of incorrectly allowing user opens too. fix this by replacing the swap_bdevsw d_open with one that succeeds for the first call but fails for all subsequent calls. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.206.4.1 src/sys/uvm/uvm_swap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.