mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
o Stop printing errors if flushing fails (could be an unconfigured device).
This commit is contained in:
parent
e82f37cbbf
commit
e3528bcda7
@ -98,8 +98,7 @@ int dev_open(struct device *dev, int flags)
|
|||||||
|
|
||||||
static void _flush(int fd)
|
static void _flush(int fd)
|
||||||
{
|
{
|
||||||
if (ioctl(fd, BLKFLSBUF, 0))
|
ioctl(fd, BLKFLSBUF, 0);
|
||||||
log_error("couldn't flush device.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int dev_close(struct device *dev)
|
int dev_close(struct device *dev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user