[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH] (1/2) new library interface for vg_read



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]