Re: Adding snapshot capability to Linux

From: Andreas Dilger (adilger@clusterfs.com)
Date: Tue Apr 23 2002 - 15:22:29 EST


On Apr 23, 2002 12:04 -0700, Jeremy Jackson wrote:
> This type of snapshot is very desirable. It can be done by remounting
> the fs ro, then taking EVMS or LVM snapshot, but you can't do that with open
> files.
>
> For a journaling fs cooperation with snapshot while rw, the fs must accept
> a snapshot request, pause in flight IO, sync all pending buffers, flush
> it's log, mark fs clean (almost like umount) continue the block dev
> snapshot, mark fs in use, resume io.
>
> How about having all FS export methods for this, and VFS export to
> userspace.

Please do your homework. What you describe already exists. The VFS
methods (write_super_lockfs and unlockfs) are already there, and all
of the journaling filesystems support this. The LVM and EVMS code has
patches to call these VFS methods. For some reason the VFS-lock patch
has not yet been included in the kernel, but it should be.

As for filesystem-level snapshots (i.e. blocking write requests at the
VFS layer and doing COW) that is what snapfs (previously mentioned) does.

Cheers, Andreas

--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

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



This archive was generated by hypermail 2b29 : Tue Apr 23 2002 - 22:00:36 EST