diff options
Diffstat (limited to 'libglusterfs/src/inode.c')
| -rw-r--r-- | libglusterfs/src/inode.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index a386bf03d70..d65a40cd71f 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -715,6 +715,15 @@ __inode_link (inode_t *inode, inode_t *parent, const char *name,          if (!table)                  return NULL; +        if (parent) { +                /* We should prevent inode linking between different +                   inode tables. This can cause errors which is very +                   hard to catch/debug. */ +                if (inode->table != parent->table) { +                        GF_ASSERT (!"link attempted b/w inodes of diff table"); +                } +        } +          link_inode = inode;          if (!__is_inode_hashed (inode)) {  | 
