Bug 1140199
| Summary: | cryptsetup-reencrypt fails to write its log on some filesystems | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Ondrej Kozina <okozina> | |
| Component: | cryptsetup | Assignee: | Ondrej Kozina <okozina> | |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 7.0 | CC: | agk, jstodola, mbroz, okozina, pholica, pkotvan, prajnoha | |
| Target Milestone: | pre-dev-freeze | Keywords: | Triaged | |
| Target Release: | 7.1 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | cryptsetup-1.6.6-2.el7 | Doc Type: | Bug Fix | |
| Doc Text: |
cryptsetup-reencrypt with --use-directio parameter when invoked from directory residing in filesystem which was on top of block device with sector size <> 512B caused failure.
The fix replaced O_DIRECT flag with O_SYNC flag for all
open() calls related to reencrypt log. The O_SYNC flag is used whenever --use-fsync option is detected.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1140201 (view as bug list) | Environment: | ||
| Last Closed: | 2015-03-05 11:07:29 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
Ondrej Kozina
2014-09-10 13:25:20 UTC
The --use-directio flag was intended for data access. The log file itself probably do not need to use O_DIRECT at all, fsync or similar mechanism should be enough (it is there to be able to continue correctly stopped encryption). I will fix this upstream soon... fixed in upstream: https://code.google.com/p/cryptsetup/source/detail?r=3d6bcae84c5f55a82dc0056e3d7da33bee3f00b9 Verified on RHEL-7.1-20141204.2 with anaconda-19.31.111-1.el7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0511.html |