]> git.neil.brown.name Git - LaFS.git/commit
New mount infrastructure for snapshot.
authorNeilBrown <neilb@suse.de>
Sun, 25 Jul 2010 04:38:53 +0000 (14:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Aug 2010 01:58:12 +0000 (11:58 +1000)
commite7bb91b46ab5b396715053185d66600d048fd785
tree4d0f1877c536dd40a0aff9d8931545bed3933916
parent43f6d8c7a67a49fb563da3bf53e146a5aea89596
New mount infrastructure for snapshot.

Using the new s_sb_info structure, we add a snapshot number
so we can uniquely identify a snapshot from the superblock and
the 'sget' can be used to find an existing or new superblock.

If it is new, set it up properly as before.

No need to fiddle with 'primary_sb' - we have a ref into it from the
path lookup so it cannot go away, and it shouldn't really matter if it
does.

Signed-off-by: NeilBrown <neilb@suse.de>
snapshot.c