Bug 1376563
Summary: | unable to get dmstats file map to report any I/O operation stats | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | Bryn M. Reeves <bmr> |
lvm2 sub component: | dmsetup | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED DUPLICATE | Docs Contact: | |
Severity: | high | ||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac |
Version: | 7.3 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-23 15:53:39 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: |
Description
Corey Marthaler
2016-09-15 18:04:56 UTC
I think the reason you're not actually re-writing the file - by default I think cp will unlink the destination and open(2) a new file, where dd does open the existing file, but using O_CREAT|O_TRUNC (i.e. all existing extents are released): lseek(0, 0, SEEK_CUR) = 0 open("/var/tmp/foo", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 dup2(3, 1) = 1 This will be fixed when we implement inode monitoring and automatic refresh of the region table but until then we can only support in-place IO. We should note this in the man page/release notes, or a kbase article - it's going to be fairly common with tools like cp/dd and is confusing for the user. *** This bug has been marked as a duplicate of bug 1378956 *** |