mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cov: ignore close result
This commit is contained in:
parent
6668d6409a
commit
e7b5f490c5
@ -86,7 +86,7 @@ static void *_fix_init(struct io_engine *engine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!_runs_is_tmpfs) {
|
if (!_runs_is_tmpfs) {
|
||||||
close(f->fd);
|
(void) close(f->fd);
|
||||||
// reopen with O_DIRECT
|
// reopen with O_DIRECT
|
||||||
f->fd = open(f->fname, O_RDWR | O_DIRECT);
|
f->fd = open(f->fname, O_RDWR | O_DIRECT);
|
||||||
T_ASSERT(f->fd >= 0);
|
T_ASSERT(f->fd >= 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user