1
0
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:
Alasdair Kergon 2003-11-13 23:55:03 +00:00
parent 034db45e26
commit 27642fade0

View File

@ -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;