]> git.neil.brown.name Git - LaFS.git/commitdiff
Add missing set_anon_super for subset mounts
authorNeilBrown <neilb@suse.de>
Fri, 13 Aug 2010 06:43:37 +0000 (16:43 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 13 Aug 2010 06:43:37 +0000 (16:43 +1000)
oops - missed that.

Signed-off-by: NeilBrown <neilb@suse.de>
super.c
test/go

diff --git a/super.c b/super.c
index f5b255d205111350b54ffabb5b81c4cfbb6e39a7..a15c25d30abf3b5bc28793b6444551cc046f19db 100644 (file)
--- a/super.c
+++ b/super.c
@@ -928,6 +928,7 @@ static int test_subset(struct super_block *sb, void *data)
 static int set_subset(struct super_block *sb, void *data)
 {
        sb->s_fs_info = data;
+       set_anon_super(sb, NULL);
        return 0;
 }
 
diff --git a/test/go b/test/go
index 962a06c1f123ca21e7a9edfe2cdf876e8cc96973..56e2d510eb8bb768388ce7df0af9752471e9bb97 100644 (file)
--- a/test/go
+++ b/test/go
@@ -198,6 +198,7 @@ mount -t lafs_subset /mnt/1/foo /mnt2
 echo hello > /mnt2/foo1
 echo goodby > /mnt2/foo2
 ls -lai /mnt2
+#ls -lai /mnt/1
 sync
 umount /mnt2
 mount -t lafs_subset /mnt/1/foo /mnt/2