1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/tools
Jonathan Earl Brassow cbd41292a4 Taka's fix for handling failure of all mirrored log devices and
all but one mirror leg.

<patch header>
To handle a double failure of a mirrored log, Jon's two patches are
commited, however, lvconvert command can't still handle an error
when mirror leg and mirrored log got failure at the same time.

  [Patch]: Handle both devices of a mirrored log failing (bug 607347)
  posted: https://www.redhat.com/archives/lvm-devel/2010-July/msg00009.html
  commit: https://www.redhat.com/archives/lvm-devel/2010-July/msg00027.html

  [Patch]: Handle both devices of a mirrored log failing (bug 607347) -
           additional fix
  posted: https://www.redhat.com/archives/lvm-devel/2010-July/msg00093.html
  commit: https://www.redhat.com/archives/lvm-devel/2010-July/msg00101.html

In the second patch, the target type of mirrored log is replaced with
error target when remove_log is set to 1, but this procedure should be
also used in other cases such as the number of mirror leg is 1. This
patch relocates the procedure to the main path.

In addition, I added following three changes.

- Removed tmp_orphan_lvs handling procedure
  It seems that _delete_lv() can handle detached_log_lv properly
  without adding mirror legs in mirrored log to tmp_orphan_lvs.
  Therefore, I removed the procedure.

- Removed vg_write()/vg_commit()
  Metadata is saved by vg_write()/vg_commit() just after detached_log_lv
  is handled. Therefore, I removed vg_write()/vg_commit().

- With Jon's second patch, we think that we don't have to call
  remove_mirror_log() in _lv_update_mirrored_log() because will be
  handled remove_mirror_images() in _lvconvert_mirrors_repaire().
</patch header>

Signed-off-by: Takahiro Yasui <takahiro.yasui@hds.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
2010-08-02 21:07:40 +00:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
args.h Fix --[vg]metadatacopies arg processing 2010-06-30 20:21:03 +00:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h Add --force to pvchange, and allow override of prompt involving metadataignore. 2010-07-07 19:14:57 +00:00
dmsetup.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
dumpconfig.c Tidy some uses of arg_count and introduce arg_is_set. 2009-11-03 15:50:42 +00:00
formats.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvchange.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvconvert.c Taka's fix for handling failure of all mirrored log devices and 2010-08-02 21:07:40 +00:00
lvcreate.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvdisplay.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
lvextend.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm2cmd-static.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmd.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvm2cmd.h Remove C++ private keyword from headers. 2010-06-16 13:01:25 +00:00
lvm2cmdline.h Only allow one return from poll_daemon(). If a child polldaemon was 2010-01-11 19:19:17 +00:00
lvm-static.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvm.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvmchange.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvmcmdlib.c mlockall() -> mlock() 2010-03-05 14:48:33 +00:00
lvmcmdline.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvmdiskscan.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvreduce.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvremove.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvrename.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
lvresize.c Remove no-longer-used arg_ptr_value. 2010-04-29 01:38:12 +00:00
lvscan.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
Makefile.in generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
polldaemon.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
polldaemon.h Default to checking LV's progress before waiting in _wait_for_single_lv. 2010-01-22 21:59:42 +00:00
pvchange.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
pvck.c Clean up numerous compiler warnings that crept in recently. 2007-08-22 14:38:18 +00:00
pvcreate.c replace existing_pv with existing_pvl 2010-03-16 15:48:27 +00:00
pvdisplay.c Add missing vg_release to pvs and pvdisplay to fix memory leak. 2009-11-24 17:07:09 +00:00
pvmove.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
pvremove.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
pvresize.c Accept orphan VG names as parameters to lock_vol() and related functions. 2010-05-19 01:16:40 +00:00
pvscan.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
reporter.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
segtypes.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
stub.h Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
toollib.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00
toollib.h Remove superfluous fn prototypes. 2010-07-09 15:21:10 +00:00
tools.h Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgcfgbackup.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgcfgrestore.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
vgchange.c Remove unneeded "active" variable in vgchange_monitoring(). 2010-07-26 19:03:29 +00:00
vgck.c Make vgck warn about missing PVs. 2010-07-27 20:05:29 +00:00
vgconvert.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgcreate.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00
vgdisplay.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgexport.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgextend.c Shorten prompt for pvchange and vgextend. 2010-07-07 21:30:07 +00:00
vgimport.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgmerge.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgmknodes.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgreduce.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgremove.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgrename.c Allow VGs with active LVs to be renamed. 2010-04-14 13:03:06 +00:00
vgscan.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
vgsplit.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00