Bug 764041 (GLUSTER-2309)
Summary: | write-behind returns bogus post-attributes | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Jeff Darcy <jdarcy> |
Component: | write-behind | Assignee: | Raghavendra G <rgowdapp> |
Status: | CLOSED EOL | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | mainline | CC: | bugs, gluster-bugs, ndevos, rwheeler |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://git.fedorahosted.org/git/?p=CloudFS.git;a=blob;f=patches/wb-quota.patch;h=a31b9e82d864f464291fd7918bc5648c0625db1b;hb=HEAD | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-10-22 15:46:38 UTC | Type: | --- |
Regression: | RTNR | Mount Type: | All |
Documentation: | DNR | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeff Darcy
2011-01-21 16:43:13 UTC
Hi Jeff, As you've commented in the patch, this is not complete fix. Even then, this is not correct fix, since ia_blocks should contain total number of blocks allocated to file and not just blocks consumed by _this_ write request (request->write_size, contains write_size of current write request). Also, block-size may not be the same everywhere. regards, Raghavendra. (In reply to comment #1) > As you've commented in the patch, this is not complete fix. Even then, this is > not correct fix, since ia_blocks should contain total number of blocks > allocated to file and not just blocks consumed by _this_ write request > (request->write_size, contains write_size of current write request). Also, > block-size may not be the same everywhere. The part about total number of blocks vs. blocks for this request is valid. Thanks for catching that. This needs to be resolved if we want to use these translators together, and I hope we can do so without incurring the cost of an extra stat() every time we write. As for the block size, the reason the patch uses 512 is that features/quota does so (see quota_writev_cbk). We can make write-behind more block-size aware, but only if we do likewise for quota. Very hard to solve witout having a unified buffer caching. Marking it for future release. because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice. If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it. |