Re: Read from file fails

From: Paulo Marques
Date: Tue May 04 2004 - 13:52:06 EST


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...

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 ;)

--
Paulo Marques - www.grupopie.com
"In a world without walls and fences who needs windows and gates?"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/