A
A
Axelertortt2015-07-14 09:17:43
FreeBSD
Axelertortt, 2015-07-14 09:17:43

How in vn_rdwr, VOP_ACCESS to implement before writing to a file?

Is it possible to append to the end of the file somehow using vn_rdwr(9) without calculating the offset itself? As far as I understand, there are also functions for writing from the FreeBSD kernel to a file (vn_write(9), VOP_WRITE()). The VAPPEND flag can be set in VOP_ACCESS. But I don't know how to use it yet. Where are the (source codes) of functions like VOP_ACCESS_APV(), VOP_WRITE_APV() described?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question