public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Libor Vanek <libor@conet.cz>
To: Paulo Marques <pmarques@grupopie.com>
Cc: "Richard B. Johnson" <root@chaos.analogic.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Read from file fails
Date: Wed, 5 May 2004 11:47:22 +0200	[thread overview]
Message-ID: <20040505094722.GA5767@Loki> (raw)
In-Reply-To: <4097E4DD.6090904@grupopie.com>

On Tue, May 04, 2004 at 07:45:49PM +0100, Paulo Marques wrote:
> Libor Vanek wrote:
> 
> >Using kernel module:
> >- user space process wants to change some file which is in "snapshoted" dir
> >- my module catches this request, holds it, creates copy of original file 
> >and allows original request to proceed
> 
> 
> Did you take a look at LVM snapshots?
> 
> http://tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html
> 
> Maybe your problem is already solved...

No - this has several disadvantages - mainly you can  snapshot only whole "logical volume" and have preserved space for it (okay - you can add more disks) and it's not very flexible. My approach can even snapshot files to the NFS volume and if you loose primary volume you can still recover some data.
 
> Anyway, you really shouldn't worry about the time it takes to make a 
> context switch when you want to copy a file on modify ;)

Yeah - I'm now convinced that user space daemon is "The Only Right Thing (tm)". I'm now looking how can kernel comunicate with running user-space process.

--
Libor Vanek

      reply	other threads:[~2004-05-05  9:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-03  0:00 Read from file fails Libor Vanek
2004-05-03 13:11 ` Richard B. Johnson
2004-05-03 15:06   ` Libor Vanek
2004-05-04  0:47     ` Richard B. Johnson
2004-05-04  1:19       ` Libor Vanek
2004-05-04 13:49         ` Richard B. Johnson
2004-05-05 10:34           ` Libor Vanek
2004-05-04 14:31         ` Bart Samwel
2004-05-05  9:54           ` Libor Vanek
2004-05-05 10:04             ` Bart Samwel
2004-05-05 10:19               ` Libor Vanek
2004-05-05 10:45                 ` Bart Samwel
2004-05-05 11:22                   ` Libor Vanek
2004-05-05 11:50                     ` Bart Samwel
2004-05-05 10:54                 ` Denis Vlasenko
2004-05-05 11:58                   ` Michael Clark
2004-05-04 18:45         ` Paulo Marques
2004-05-05  9:47           ` Libor Vanek [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=20040505094722.GA5767@Loki \
    --to=libor@conet.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmarques@grupopie.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