Subject: Re: How to capture all file system writes
To: None <tech-kern@netbsd.org>
From: Stephan Uphoff <ups@stups.com>
List: tech-kern
Date: 10/20/2003 15:45:03
> I'm looking for possible strategies for file system snapshots.  Will this
> addition to `sys/kern/vfs_bio.c::bwrite(struct buf *bp)' catch all writes
> from a mounted file system to the block device it is mounted on?

No

Take a look at genfs_gop_write() used (indirectly) by ffs and others to write 
out
dirty file pages.

Using a swap-file or using vnd(4) also bypasses the classical block layer.

	Stephan