|
|
c5d8c8 |
From 89cdfb40264c12105a1b4990fa9b45290aa6cef0 Mon Sep 17 00:00:00 2001
|
|
|
c5d8c8 |
From: Vinayakswami Hariharmath <vharihar@redhat.com>
|
|
|
c5d8c8 |
Date: Fri, 8 Oct 2021 09:40:41 +0530
|
|
|
c5d8c8 |
Subject: [PATCH 609/610] feature/shard: wrong dname results in dentry not
|
|
|
c5d8c8 |
found error
|
|
|
c5d8c8 |
|
|
|
c5d8c8 |
Due to wrong dname passed to inode_unlink in
|
|
|
c5d8c8 |
shard_evicted_inode_fsync_cbk() resulting in dentry not found
|
|
|
c5d8c8 |
error.
|
|
|
c5d8c8 |
|
|
|
c5d8c8 |
This patch addresses the issue.
|
|
|
c5d8c8 |
|
|
|
c5d8c8 |
> upstream patch: https://github.com/gluster/glusterfs/pull/2475
|
|
|
c5d8c8 |
> Fixes: #2470
|
|
|
c5d8c8 |
> Change-Id: I6c479980ae3fa7ba558327055a9e5e5c2d2a850f
|
|
|
c5d8c8 |
> Signed-off-by: Vinayakswami Hariharmath vharihar@redhat.com
|
|
|
c5d8c8 |
|
|
|
c5d8c8 |
BUG: 1911665
|
|
|
c5d8c8 |
Change-Id: I96aa5f57303b69a08990de039ddeecad7e7ae6af
|
|
|
c5d8c8 |
Signed-off-by: Vinayakswami Hariharmath <vharihar@redhat.com>
|
|
|
c5d8c8 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/c/rhs-glusterfs/+/280202
|
|
|
c5d8c8 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
c5d8c8 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
c5d8c8 |
---
|
|
|
c5d8c8 |
xlators/features/shard/src/shard.c | 2 +-
|
|
|
c5d8c8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
c5d8c8 |
|
|
|
c5d8c8 |
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
|
|
|
c5d8c8 |
index b828ff9..882373f 100644
|
|
|
c5d8c8 |
--- a/xlators/features/shard/src/shard.c
|
|
|
c5d8c8 |
+++ b/xlators/features/shard/src/shard.c
|
|
|
c5d8c8 |
@@ -950,7 +950,7 @@ shard_evicted_inode_fsync_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
|
|
|
c5d8c8 |
{
|
|
|
c5d8c8 |
__shard_inode_ctx_get(shard_inode, this, &ctx;;
|
|
|
c5d8c8 |
if ((list_empty(&ctx->to_fsync_list)) && (list_empty(&ctx->ilist))) {
|
|
|
c5d8c8 |
- shard_make_block_bname(ctx->block_num, shard_inode->gfid,
|
|
|
c5d8c8 |
+ shard_make_block_bname(ctx->block_num, ctx->base_gfid,
|
|
|
c5d8c8 |
block_bname, sizeof(block_bname));
|
|
|
c5d8c8 |
inode_unlink(shard_inode, priv->dot_shard_inode, block_bname);
|
|
|
c5d8c8 |
/* The following unref corresponds to the ref held by
|
|
|
c5d8c8 |
--
|
|
|
c5d8c8 |
1.8.3.1
|
|
|
c5d8c8 |
|