On Tue, May 03, 2016 at 09:30:22AM +0200, Christoph Badura wrote: > - for the write case > off = current_file_offset > VOP_ADVLOCK(F_WRLCK, off, size_of_write) > VOP_WRITE(...) > VOP_ADVLOCK(F_UNLCK, off, size_of_write)
There is still the problem to set the appropriate lock owner (which is struct file * or struct proc * depending of the case). vn_write() has struct fiile available. vn_rdwr() does not have it, -- Emmanuel Dreyfus m...@netbsd.org