1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/tools
Jonathan Earl Brassow 6ec8c52201 This patch fixes a problem where the mirror polling process
may never complete.

If you convert from a linear to a mirror and then convert that
mirror back to linear /while/ the previous (up)convert is
taking place, the mirror polling process will never complete.
This is because the function that polls the mirror for
completion doesn't check if it is still polling a mirror and
the copy_percent that it gets back from the linear device is
certainly never 100%.

The fix is simply to check if the daemon is still looking at
a mirror device - if not, return PROGRESS_CHECK_FAILED.

The user sees the following output from the first (up)convert
if someone else sneaks in and does a down-convert shortly
after their convert:
[root@bp-01 ~]# lvconvert -m1 vg/lv
  vg/lv: Converted: 43.4%
  ABORTING: Mirror percentage check failed.
2010-08-26 16:29:12 +00:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
args.h Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +00:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +00:00
dmsetup.c Wait for node creation before displaying debug info in dmsetup. 2010-08-03 13:04:32 +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 'SINGLENODE' instead of 'dead' in clvmd singlenode messages. 2010-08-17 19:25:05 +00:00
lvconvert.c Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +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 Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +00:00
lvscan.c Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +00:00
Makefile.in Clean generated files .exported_symbols_generated, example.conf for distclean. 2010-08-03 13:00:45 +00:00
polldaemon.c This patch fixes a problem where the mirror polling process 2010-08-26 16:29:12 +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 Require --restorefile when using pvcreate --uuid. 2010-08-12 04:08:59 +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 Fix pvmove --abort to work even for empty pvmove LV 2010-08-23 11:34:10 +00:00
pvremove.c Remove assumption that --yes must be used only in --force mode 2010-08-19 23:04:37 +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 Remove assumption that --yes must be used only in --force mode 2010-08-19 23:04:37 +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 Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +00:00
vgck.c Make vgck warn about missing PVs. 2010-07-27 20:05:29 +00:00
vgconvert.c Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +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 Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +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