Skip to content

Commit

Permalink
[GFS2] gfs2 knows of directories which it chooses not to display
Browse files Browse the repository at this point in the history
This is for Red Hat bugzilla bug bz #222302:

Moving a virtual IP from node to node between two NFS-over-GFS2
servers was causing one of the GFS2 servers to become confused and
reference a deleted inode.  The problem was due to vfs dentries that did
not reference the gfs2_dops and therefore didn't call the gfs2 revalidate
code to revalidate a dentry after a directory had been deleted & recreated.
This patch is a crosswrite from a RHEL4 bug found in GFS1 as
bz #190756 and it is against the latest -nmw git tree.

Signed-off-by: Robert Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Robert Peterson authored and Steven Whitehouse committed Feb 5, 2007
1 parent d200778 commit 7083146
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/gfs2/ops_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "glock.h"
#include "glops.h"
#include "inode.h"
#include "ops_dentry.h"
#include "ops_export.h"
#include "rgrp.h"
#include "util.h"
Expand Down Expand Up @@ -189,6 +190,7 @@ static struct dentry *gfs2_get_parent(struct dentry *child)
return ERR_PTR(-ENOMEM);
}

dentry->d_op = &gfs2_dops;
return dentry;
}

Expand Down Expand Up @@ -269,6 +271,7 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, void *inum_obj)
return ERR_PTR(-ENOMEM);
}

dentry->d_op = &gfs2_dops;
return dentry;

fail_rgd:
Expand Down

0 comments on commit 7083146

Please sign in to comment.