[haiku-development] Reg. FS hooks

  • From: "Shubham Bhagat" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "shubhambhagat111" for DMARC)
  • To: Haiku Development ML <haiku-development@xxxxxxxxxxxxx>
  • Date: Wed, 10 Jun 2020 16:17:17 +0000 (UTC)

Hello,While I've been working on my GSoC project, I've come across kernel 
interface hooks whose behaviour isn't very clear to me. Any help would be 
appreciated.
The hook: "read_dir"Link to hook details: 
https://www.haiku-os.org/docs/api/structfs__vnode__ops.html#a482878bf7588145c42d16c012a3de2e8
This hook reads the directory entries into a buffer and the buffer size being 
small will cause an error.What is the behaviour after this? Is the hook invoked 
again with a larger buffer and previous reading of entries goes in vain? Or 
does it read the entries from the previous buffer and send another buffer to 
read the rest of the entries (This makes sense) ? Or is there some other kind 
of behaviour?

Other related posts: