public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Raskin <a1d23ab4@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: Re: Intercept write to disk
Date: Sat, 27 May 2006 11:25:22 +0400	[thread overview]
Message-ID: <4477FEE2.7080401@mail.ru> (raw)
In-Reply-To: <1148679612.2094.16.camel@localhost>

Mishael A Sibiryakov wrote:
> Hm, i need a somthing transparent, this tool is for make image of entire
> disk/partition on fly. Because tool is get some time for work i need to
> store changes between start and end of the process for append it to
> image. Probably i thinking in wrong way and i need a something else.

Maybe you want to back up a partition as it was at some moment in the 
past (exactly)? Then you have to make a device-mapper-snapshot out of 
it. You  need to install device-mapper module and userspace tools, and 
make the following:  original device is never used directly; instead a 
snapshot-origin mapping is made of it and is always used. When you need 
snapshot, you create a file (on another partition, of course; maybe even 
in the memory if you are sure you will do everything quickly enough), 
make it a loopback device, and make a snapshot out of snapshot-origin 
you have and this loopback for changes rollback. Maybe it is also better 
  to mount -o remount,sync the device for the time of creating snapshot 
device in order to have less problems with consistency. And remount it 
back when you start copying.

      reply	other threads:[~2006-05-27  7:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-26 20:52 Intercept write to disk Mishael A Sibiryakov
2006-05-26 21:21 ` Bernd Eckenfels
2006-05-26 21:40   ` Mishael A Sibiryakov
2006-05-27  7:25     ` Michael Raskin [this message]

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=4477FEE2.7080401@mail.ru \
    --to=a1d23ab4@mail.ru \
    --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