tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: struct file at VFS level (round 1.5)



Christoph Badura <bad%bsd.de@localhost> wrote:

> Mandatory file locking simply is a SMOP for the kernel to add a flag to a
> vnode that indicates whether mandatory locking is in effect and adding the
> necessary checks and interaction with file systems to open(2), read(2),
> write(2) etc. at the syscall level.  VOP_ADVLOCK is the right place to
> handle the necessary interaction with the file systems.[3]

Please tell me if I understood your point of view correctly: you mean
that mandatory locks should be implemented above VFS, by turning for
instance a write operation into VOP_ADVLOCK then on success VOP_WRITE?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index