mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
Fix dev_zero() offset.
This commit is contained in:
parent
034db45e26
commit
27642fade0
@ -463,6 +463,8 @@ int dev_zero(struct device *dev, uint64_t offset, size_t len)
|
|||||||
len -= s;
|
len -= s;
|
||||||
if (!len)
|
if (!len)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
offset += s;
|
||||||
}
|
}
|
||||||
|
|
||||||
dev->flags |= DEV_ACCESSED_W;
|
dev->flags |= DEV_ACCESSED_W;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user