Bug 842364
Summary: | dd fails with "Invalid argument" error on the mount point while creating the file for first time on stripe with replicate volume | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | shylesh <shmohan> | |
Component: | stripe | Assignee: | shishir gowda <sgowda> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | pre-release | CC: | amarts, gluster-bugs, nsathyan, sdharane, thefiguras | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 842373 (view as bug list) | Environment: | ||
Last Closed: | 2013-07-24 17:51:30 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 842373, 842752 |
Description
shylesh
2012-07-23 14:57:28 UTC
shylesh when you get a chance, can you test below patch if possible and see if it works: diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index b7e9bd8..78eaa97 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -98,7 +98,7 @@ afr_create_unwind (call_frame_t *frame, xlator_t *this) local->cont.create.inode, unwind_buf, &local->cont.create.preparent, &local->cont.create.postparent, - NULL); + local->xdata_rsp); } return 0; @@ -160,8 +160,10 @@ afr_create_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this, fd_ctx->opened_on[child_index] = AFR_FD_OPENED; fd_ctx->flags = local->cont.create.flags; - if (local->success_count == 0) + if (local->success_count == 0) { local->cont.create.buf = *buf; + local->xdata_rsp = dict_ref (xdata); + } if (child_index == local->read_child_index) { local->cont.create.read_child_buf = *buf; This bug has been fixed by this patch: CHANGE: http://review.gluster.com/3713 (afr: pass back xdata in create) merged in master by Anand Avati (avati) |