diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2013-08-26 15:07:41 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2013-09-03 10:28:05 +0530 |
commit | a8d033f4b4430aea3b9f286be98bcbfe49add69a (patch) | |
tree | 2a7455e44652de2b625df62180ec2cfd13013186 | |
parent | 14020a6522450a44ef0258a4f3b9e8310a790c4c (diff) |
features/marker: Do proper check before logging in marker/quota.
For correct functioning of marker we need a parent/pargfid.
Change-Id: Ie1a0fb3a5b9b12091e1ea749cbf15342a5f933db
BUG: 969461
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/11947
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 30c69a6b..bcec2969 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -30,7 +30,8 @@ mq_loc_copy (loc_t *dst, loc_t *src) GF_VALIDATE_OR_GOTO ("marker", src, out); if (src->inode == NULL || - src->path == NULL) { + ((src->parent == NULL) && (uuid_is_null (src->pargfid)) + && !__is_root_gfid (src->inode->gfid))) { gf_log ("marker", GF_LOG_WARNING, "src loc is not valid"); goto out; |