Re: Syscall table AKA hijacking syscalls

From: Jörn Engel
Date: Fri Jan 02 2004 - 11:37:37 EST


On Fri, 2 January 2004 16:00:20 +0000, Christoph Hellwig wrote:
> On Fri, Jan 02, 2004 at 04:38:27PM +0100, Libor Vanek wrote:
> > I'm working on my diploma thesis which is adding snapshot capability
> > into Linux VFS (so you can do directory based snapshots - not complete
> > device, like in LVM). It'll consist of two separete modules:
> > Snapshot module:
> > - will hijack (one or another way) calls to open/move/unlink/mkdir/etc.
> > syscall
> > - when will detect change to selected directory (which I want to
> > snapshot), it'll copy/move old file/directory to some temporary
> > (selected when creating snapshot) - in fact - copy on write behaviour
>
> This should be implemented as a stackable filesystem..

Does this filesystem stack work with multiple mount points?

My guess is that the filesystem change notification would be a better
solution, either in userspace or in kernelspace, doesn't matter. But
that is far from finished or even generally accepted.


For the diploma thesis, feel free to use any hack you like, including
hijacking syscalls. But remember that it is a hack and nothing else,
only helping you to remain on schedule and focus more on the real
subject. And don't plan on kernel acceptance either, as you will fail
either that or the thesis and I'd choose the thesis.

Jörn

--
Mundie uses a textbook tactic of manipulation: start with some
reasonable talk, and lead the audience to an unreasonable conclusion.
-- Bruce Perens
-
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/