44012ad580
Resolves: bz#1378371 bz#1384983 bz#1472445 bz#1493085 bz#1508999 Resolves: bz#1516638 bz#1518260 bz#1529072 bz#1530519 bz#1537357 Resolves: bz#1540908 bz#1541122 bz#1541932 bz#1543068 bz#1544382 Resolves: bz#1544852 bz#1545570 bz#1546075 bz#1546945 bz#1546960 Resolves: bz#1547012 bz#1549497 Signed-off-by: Milind Changire <mchangir@redhat.com>
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
From cba83bafc87af2b635c24d1be2d7224a01901c73 Mon Sep 17 00:00:00 2001
|
|
From: N Balachandran <nbalacha@redhat.com>
|
|
Date: Tue, 20 Feb 2018 20:08:11 +0530
|
|
Subject: [PATCH 165/180] cluster/dht: Ignore ENODATA from getxattr for posix
|
|
acls
|
|
|
|
dht_migrate_file no longer prints an error if getxattr for
|
|
posix acls fails with ENODATA/ENOATTR.
|
|
|
|
upstream: https://review.gluster.org/#/c/19603/
|
|
|
|
> Change-Id: Id9ecf6852cb5294c1c154b28d609889ea3420e1c
|
|
> BUG: 1546954
|
|
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
|
|
|
|
Change-Id: Id9ecf6852cb5294c1c154b28d609889ea3420e1c
|
|
BUG: 1546945
|
|
Signed-off-by: N Balachandran <nbalacha@redhat.com>
|
|
Reviewed-on: https://code.engineering.redhat.com/gerrit/130975
|
|
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
Reviewed-by: Amar Tumballi <amarts@redhat.com>
|
|
---
|
|
xlators/cluster/dht/src/dht-rebalance.c | 15 ++++++++-------
|
|
1 file changed, 8 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
|
|
index e620005..9770359 100644
|
|
--- a/xlators/cluster/dht/src/dht-rebalance.c
|
|
+++ b/xlators/cluster/dht/src/dht-rebalance.c
|
|
@@ -2029,13 +2029,14 @@ dht_migrate_file (xlator_t *this, loc_t *loc, xlator_t *from, xlator_t *to,
|
|
ret = syncop_getxattr (from, loc, &xattr, POSIX_ACL_ACCESS_XATTR,
|
|
NULL, NULL);
|
|
if (ret < 0) {
|
|
- gf_msg (this->name, GF_LOG_WARNING, -ret,
|
|
- DHT_MSG_MIGRATE_FILE_FAILED,
|
|
- "Migrate file failed:"
|
|
- "%s: failed to get xattr from %s",
|
|
- loc->path, from->name);
|
|
- *fop_errno = -ret;
|
|
- ret = -1;
|
|
+ if ((-ret != ENODATA) && (-ret != ENOATTR)) {
|
|
+ gf_msg (this->name, GF_LOG_WARNING, -ret,
|
|
+ DHT_MSG_MIGRATE_FILE_FAILED,
|
|
+ "Migrate file failed:"
|
|
+ "%s: failed to get xattr from %s",
|
|
+ loc->path, from->name);
|
|
+ *fop_errno = -ret;
|
|
+ }
|
|
} else {
|
|
ret = syncop_setxattr (to, loc, xattr, 0, NULL, NULL);
|
|
if (ret < 0) {
|
|
--
|
|
1.8.3.1
|
|
|