Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Retrieving dirty buffer associated with a vnode
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="minhaj_dell" data-source="post: 1772281" data-attributes="member: 395992"><p>I am trying to read the dirty buffer associated with the vnode. For the life of me I cant figure out how to gain access to it so I can inspect it's content. I am using macOS Sierra 10.12.5 and I've tried to use buf_iterate routine registering a callback to be called to process the dirty buffers. The callback never gets called. My questions is:</p><p></p><p> 1) What's the best method of reading the dirty buffer(s) given a vnode (I am already ensuring I am processing a file vnode)?</p><p> 2) If buf_iterate is the right API, when is the callback called? </p><p> 3) What's the best way to inspect a buffer associated with the Vnode in the MAC layer so a proper security decision can be made about the operation at hand?</p></blockquote><p></p>
[QUOTE="minhaj_dell, post: 1772281, member: 395992"] I am trying to read the dirty buffer associated with the vnode. For the life of me I cant figure out how to gain access to it so I can inspect it's content. I am using macOS Sierra 10.12.5 and I've tried to use buf_iterate routine registering a callback to be called to process the dirty buffers. The callback never gets called. My questions is: 1) What's the best method of reading the dirty buffer(s) given a vnode (I am already ensuring I am processing a file vnode)? 2) If buf_iterate is the right API, when is the callback called? 3) What's the best way to inspect a buffer associated with the Vnode in the MAC layer so a proper security decision can be made about the operation at hand? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Retrieving dirty buffer associated with a vnode
Top