Skip to content

Refactor vgremove and move orphan lock inside library, v2

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Remove unnecessary parameters from vg_remove_single().lib/metadata/metadata-exported.h lib/metadata/metadata.c tools/vgremove.c+14 -200 replies
2/5Remove force parameter from vg_remove_single, now the liblvm function.lib/metadata/metadata-exported.h lib/metadata/metadata.c tools/vgremove.c+32 -210 replies
3/5Move orphan lock inside vg_remove_single.lib/metadata/metadata.c tools/vgremove.c+7 -70 replies
4/5Move orphan lock obtain/release inside vg_extend().lib/metadata/metadata.c tools/vgcreate.c tools/vgextend.c+9 -170 replies
5/5Change lock ordering of vgcfgrestore to be consistent with other tools.tools/vgcfgrestore.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Refactor vgremove and move orphan lock inside library, v2

The following 5 patches refactor vgremove and move the orphan lock inside a few library calls. After these patches we will have vgcreate, vgremove, and vgextend library calls. The last few patches also reorders VG orphan locks and VG name locks consistently throughout the code. Now VG orphan locks are obtained second. Previously in most cases they were obtained first, but in at least one case (vgreduce) they were second.

Passes testsuite and applies on:
commit 7e7274b002956a377d1f02c97d2ba96f4da1de59

Author: Alasdair Kergon <[email protected]>
Date:   Fri Jul 10 09:59:37 2009 +0000

Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old Change plog to use dm_log_with_errno unless deprecated dm_log_init was
used.
Rename plog macro to LOG_LINE and use in dm_dump_memory_debug.