mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergey Malykhin <sergey.malykhin@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Need to intercept open&write calls for vdi file when VirtualBox is working.
Date: Wed, 24 Mar 2010 12:04:33 +0600	[thread overview]
Message-ID: <1269410673.29577.1.camel@wimax-desktop> (raw)


Hi,

My problem - I have to intercept open&write function calls to .vdi file
when VirtualBox is working to control which sectors of vdi file were
changed, i.e. I need to get 1. what file was open for writing; 2. data
from buffer; 3. size of data; 4. offset in file;

I tryed: 
          - LD_PRELOAD - not helped

          - using fuse - rewrote write call and successfully
intercepted, but fuse is slow.

I have possibilities to patch ext3 or patch inotify.

Is there any better way to do it?

TIA



             reply	other threads:[~2010-03-24  6:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24  6:04 Sergey Malykhin [this message]
2010-03-24  6:52 ` David Newall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269410673.29577.1.camel@wimax-desktop \
    --to=sergey.malykhin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®