lkml.org 
[lkml]   [2006]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Intercept write to disk
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-27 09:26    [W:0.069 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site