Heinz Mauelshagen
e3709fc191
Fluff
2015-09-01 11:22:17 +02:00
Heinz Mauelshagen
ccb3bbcc25
More raid10_{far,offset} support
2015-09-01 11:21:19 +02:00
Heinz Mauelshagen
fc462a76c9
Merge with master 81d4c4a84c92
2015-08-21 18:16:21 +02:00
Heinz Mauelshagen
00ff2a2236
Merge with master 1fae121b222927
2015-08-21 18:10:59 +02:00
David Teigland
8cf5993e96
lvmlockd: fix sending debug info to lvmlockctl
...
Single messages sent over unix sockets are limited in
size to /proc/sys/net/core/wmem_max, so send the 1MB
debug buffer in smaller chunks to avoid EMSGSIZE.
Also look for EAGAIN and retry sending for a limited
time when the reader is slower than the writer.
Also shift the location of that code so it's the same
as other requests.
2015-08-21 17:52:35 +02:00
Heinz Mauelshagen
c14cb79ac0
WHATS_NEW: Update.
2015-08-21 16:25:53 +02:00
Ferenc Wágner
1ed7c70c44
cmirrord: avoid resync buffer overflow in LOG_SPRINT
...
Use snprintf() instead of sprintf() to exclude the possibility of
overflowing the resync history buffers.
2015-08-21 16:24:44 +02:00
Ferenc Wágner
efaf00f1cf
cmirrord: avoid debugging buffer overflow in LOG_SPRINT
...
Use snprintf() instead of sprintf() to exclude the possibility of
overflowing the debugging history buffers.
2015-08-21 16:24:44 +02:00
Ferenc Wágner
666b131d0b
cmirrord: fix stack smashing
...
With clusters larger than 3 nodes, the 32-byte debug buffer in
cpg_join_callback() is too small to contain all the node IDs, because
32-bit identifiers are generally rendered in 10 decimal digits. No fixed
size is good in all cases, but this is conditionally logged debug info,
so we can simply truncate it. Double the size, nevertheless.
2015-08-21 16:24:44 +02:00
Ferenc Wágner
b09894194b
cmirrord manual: add --foreground and --help options
2015-08-21 16:24:44 +02:00
Ferenc Wágner
2d62e363b1
cmirrord: add --foreground and --help options.
2015-08-21 16:24:44 +02:00
Ferenc Wágner
3dae11c5a5
cmirrord: move generic setup from daemonize() to init_all()
...
Apply pidfile creation, removal and signal setup to foreground processes too.
2015-08-21 16:24:44 +02:00
Heinz Mauelshagen
f67093e415
Merge with master 23770214a9ac
2015-08-20 18:56:12 +02:00
Heinz Mauelshagen
6f7d5df5fa
Fluff
2015-08-20 18:48:07 +02:00
Heinz Mauelshagen
a3789e4758
Fluff
2015-08-20 18:38:27 +02:00
Heinz Mauelshagen
dd42db8164
remove explicit PFL() macros from files; raid_manip: more duplication conversions possible
2015-08-20 18:35:25 +02:00
Heinz Mauelshagen
2621f3da87
Merge with master 9c5a85ce249f6
2015-08-20 18:31:28 +02:00
Heinz Mauelshagen
ee4df99b36
fluff
2015-08-18 11:59:32 +02:00
Heinz Mauelshagen
901b5d95b6
raid_manip: decision on type which leg to keep in _raid_conv_duplite()
2015-08-17 10:45:25 +02:00
Heinz Mauelshagen
e0d4a4dca7
raid_manip: start supporting more duplication conversions
2015-08-13 12:22:19 +02:00
Heinz Mauelshagen
733417eb80
raid_manip: address deactivation of source/destination lv sublvs on conversion duplication
2015-08-12 19:19:22 +02:00
Heinz Mauelshagen
152cfafe18
raid_manip: address deactivation of source/destination lv sublvs on conversion duplication
2015-08-12 18:56:42 +02:00
Heinz Mauelshagen
fec1bcbd0f
raid_manip: allow for e.g raid10 <-> raid10 duplication conversion
2015-08-12 13:04:39 +02:00
Heinz Mauelshagen
0c85327fb5
raid_manip: raid10 -> raid6 works
2015-08-11 18:09:55 +02:00
Heinz Mauelshagen
5d26fb8647
remove not compiled legacacy functions; comments
2015-08-10 13:52:35 +02:00
Heinz Mauelshagen
acbcdc51a4
fix regression in lv_raid_replace(); enhance striped-raid0 test cases
2015-08-07 16:57:01 +02:00
Heinz Mauelshagen
4e3489c4cd
merged more fixes from raid0 striped cli flaws
2015-08-05 15:55:26 +02:00
Heinz Mauelshagen
a5d0bde0bf
merged fixes from raid0 striped cli flaws
2015-07-30 12:15:35 +02:00
Heinz Mauelshagen
fa2620f0b8
raid_manip: namespace adjustments start for conversion by duplication
2015-07-29 16:57:39 +02:00
Heinz Mauelshagen
e7c23e166b
raid_manip: more conversion by duplicstion support to allow e.g. linear -> raid6 conversions
2015-07-24 19:08:04 +02:00
Heinz Mauelshagen
1a5bef1baa
lv_manip: add definition of mirrors for type raid1
...
raid_manip: clean up linear conversion by intriducing area check function
2015-07-22 19:18:16 +02:00
Heinz Mauelshagen
43b0470233
raid_manip: raid10 reordering, comments
2015-07-06 15:37:24 +02:00
Heinz Mauelshagen
9e239c79fc
fluff
2015-06-11 17:11:46 +02:00
Heinz Mauelshagen
f3a9262340
raid_manip: debug messages changed; comments
2015-06-11 12:42:04 +02:00
Heinz Mauelshagen
928c7ecd52
adjustments derived from raid0 upstream backport
...
raid_manip: support image count change during conversion between mirror and raid1
2015-06-11 02:56:10 +02:00
Heinz Mauelshagen
e884471d09
final upstream merge adjustements
2015-06-08 16:07:11 +02:00
Heinz Mauelshagen
77159c77c5
metadata-exported: forgot merge fixup
2015-06-08 15:16:48 +02:00
Heinz Mauelshagen
0111df15eb
Merge branch 'master' into test
...
Conflicts:
lib/config/config_settings.h
lib/metadata/lv_manip.c
lib/metadata/metadata-exported.h
lib/metadata/pv_map.c
lib/metadata/raid_manip.c
lib/metadata/segtype.h
2015-06-08 15:10:09 +02:00
Heinz Mauelshagen
cd77f9d50c
raid_manip: streamline _raid_extract_images; comments
2015-06-08 14:46:25 +02:00
Heinz Mauelshagen
ec4622cdcf
raid_manip: factor out _yes_no_conversion() and call it from _raid_reshape()/takoever functions
...
raid_manip: call takeover helper functions with arguments yes, force and proper new_image_count
2015-06-06 03:03:19 +02:00
Heinz Mauelshagen
c3cfa70a81
raid_manip: reorder functions to avoid prototypes; checks for --stripes/--stripesize/--type combinations
...
lvconvert: support relative #stripes
2015-06-05 21:42:48 +02:00
Heinz Mauelshagen
981eae7f3b
raid_manip: more argument checks in takeover functions; comments
...
lvconvert: remove raid conversion checks because lv_raid_convert checks them
2015-06-04 04:30:36 +02:00
Heinz Mauelshagen
70392090d0
raid_manip: supporting all takeover conversions (needs more testing); factored out more helper functions to streamline code
2015-06-04 01:34:21 +02:00
Heinz Mauelshagen
ff822ee3ef
raid_manip: remove old functions
2015-06-02 22:24:03 +02:00
Heinz Mauelshagen
9c82078d53
raid_manip: introduce _lv_update_and_reload_eliminate_lvs() and integrate _lv_update_and_reload_clear_any_flags in it
...
introduce TAKEOVER_FN_HEADER and TAKEOVER_HELPER_FN_HEADER for easy indetifying of takeover functions and takeover helper functions
Fluff
2015-06-02 14:38:11 +02:00
Heinz Mauelshagen
cbf7d16b15
raid_manip: use _lv_change_image_count(); free reshape space in new takeover function
2015-06-02 06:28:10 +02:00
Heinz Mauelshagen
f9b11c0c43
raid_manip: raid conversion (i.e. takeover) function table mostly done
2015-06-02 05:14:11 +02:00
Heinz Mauelshagen
975c35e794
raid_manip: dodge _correct_data_lv_names(); introduce _rename_data_lvs() as helper for mirror <-> raid1 conversions
2015-06-02 01:08:22 +02:00
Heinz Mauelshagen
fb7e19bbeb
raid_manip: intial infrastructure to use a raid conversion function two dimensional function array
2015-06-01 15:09:58 +02:00
Heinz Mauelshagen
a1ee75169f
raid_manip: avoid code duplication; use display_lvname()
2015-06-01 12:51:56 +02:00