From: John Bradford <john@grabjohn.com>
To: root@chaos.analogic.com
Cc: maxvaldez@yahoo.com, bulb@ucw.cz, linux-kernel@vger.kernel.org
Subject: Virtual WORM device
Date: Tue, 7 Jan 2003 18:41:07 +0000 (GMT) [thread overview]
Message-ID: <200301071841.h07If7QJ002323@darkstar.example.net> (raw)
In-Reply-To: <Pine.LNX.3.95.1030107131613.3523A-100000@chaos.analogic.com> from "Richard B. Johnson" at Jan 07, 2003 01:17:35 PM
> There is a project waiting for someone who wants
> to contribute. It only slightly involves the kernel,
> but is quite useful.
> Somebody should then modify `rm` and the kernel unlink
> to `mv' files to the dumpster directory on the
> file-system, instead of really deleting them.
Another possibility would be to create a meta-device that works like a
cross between the loopback device, and WORM device, I.E. start at the
begining, and allocate sectors sequentially. Whenever a sector would
normally be overwritten, a new one is allocated instead. This way,
you could always access the filesystem as it was at any mount in time.
Hypothetically, you could do something like:
mkmetawormdevice /dev/mw0 /dev/hda2
to create a device /dev/mw0, which uses /dev/hda2 for physical
storage.
Then:
write foo to sector 0 of /dev/mw0 - actually writes foo to sector 0 of
/dev/hda2
write bar to sector 1 of /dev/mw0 - actually writes foo to sector 1 of
/dev/hda2
write foobar to sector 0 of /dev/mw0 - actually writes foobar to
sector 2 of /dev/hda2, and notes the date and time that the virtual
'overwrite' happened.
Due to the sequential nature of the writes, the data could even be
compressed quite easily.
John.
next prev parent reply other threads:[~2003-01-07 18:32 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-07 3:58 Undelete files on ext3 ?? Max Valdez
2003-01-07 8:59 ` Marco d'Itri
2003-01-07 8:59 ` John Bradford
2003-01-07 9:29 ` Maciej Soltysiak
2003-01-07 9:45 ` Jan Hudec
2003-01-07 17:38 ` Max Valdez
2003-01-07 17:53 ` Andreas Dilger
2003-01-07 17:57 ` John Bradford
2003-01-07 18:56 ` Andreas Dilger
2003-01-07 18:17 ` Richard B. Johnson
2003-01-07 18:41 ` John Bradford [this message]
2003-01-07 18:53 ` Virtual WORM device Andreas Dilger
2003-01-07 18:54 ` John Bradford
2003-01-08 18:24 ` Vishal Verma
2003-01-07 18:45 ` Undelete files on ext3 ?? Jesse Pollard
2003-01-07 18:55 ` Andreas Dilger
2003-01-08 5:01 ` Gerhard Mack
2003-01-08 8:00 ` Jan Hudec
2003-01-08 10:57 ` John Bradford
2003-01-08 21:33 ` Valdis.Kletnieks
2003-01-08 21:47 ` John Bradford
2003-01-08 21:51 ` Randy.Dunlap
2003-01-08 22:06 ` Valdis.Kletnieks
2003-01-08 23:03 ` John Bradford
2003-01-08 23:14 ` John Bradford
2003-01-09 9:42 ` Helge Hafting
2003-01-07 20:58 ` Mike Waychison
2003-01-09 8:27 ` Michael Knigge
[not found] ` <Pine.LNX.3.95.1030107131613.3523A-100000@chaos.analogic.co m>
2003-01-07 23:51 ` Billy Rose
2003-01-07 11:30 ` John Bradford
2003-01-07 11:45 ` Matti Aarnio
2003-01-07 12:39 ` Alan Cox
2003-01-08 20:00 ` Michael Milligan
2003-01-07 9:16 ` David van Hoose
2003-01-07 19:31 ` oford
2003-01-08 11:57 ` Pavel Machek
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=200301071841.h07If7QJ002323@darkstar.example.net \
--to=john@grabjohn.com \
--cc=bulb@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=maxvaldez@yahoo.com \
--cc=root@chaos.analogic.com \
/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