[lvm-devel] [PATCH] (1/2) new library interface for vg_read
Dave Wysochanski
dwysocha at redhat.com
Thu Dec 11 20:39:07 UTC 2008
On Tue, 2008-12-09 at 17:44 +0100, Petr Rockai wrote:
> diff -rN -p -u old-lvmlib/lib/device/dev-io.c
> new-lvmlib/lib/device/dev-io.c
> --- old-lvmlib/lib/device/dev-io.c 2008-12-09 17:44:06.638398136
> +0100
> +++ new-lvmlib/lib/device/dev-io.c 2008-12-09 17:44:06.930396980
> +0100
> @@ -622,6 +622,11 @@ int dev_write(struct device *dev, uint64
> where.start = offset;
> where.size = len;
>
> + if (!vg_write_lock_held()) {
> + log_error("Attempted to write unlocked VG's device.");
> + return_0;
> + }
> +
> dev->flags |= DEV_ACCESSED_W;
>
> return _aligned_io(&where, buffer, 1);
>
Should this be its own patch? It seems unrelated to the vg_read()
library changes.
More information about the lvm-devel
mailing list