public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2004-05-11 18:47 agk
  0 siblings, 0 replies; 12+ messages in thread
From: agk @ 2004-05-11 18:47 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2004-05-11 18:47:41

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Restructure lvresize, bringing it closer to lvcreate.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.29&r2=1.30
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.51&r2=1.52


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2004-05-24 15:58 agk
  0 siblings, 0 replies; 12+ messages in thread
From: agk @ 2004-05-24 15:58 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2004-05-24 15:58:51

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Remove error labels.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.36&r2=1.37
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.53&r2=1.54


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2004-11-18 19:49 agk
  0 siblings, 0 replies; 12+ messages in thread
From: agk @ 2004-11-18 19:49 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2004-11-18 19:49:49

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Prevent snapshot origin resizing.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.107&r2=1.108
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.57&r2=1.58


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2008-04-01 22:15 wysochanski
  0 siblings, 0 replies; 12+ messages in thread
From: wysochanski @ 2008-04-01 22:15 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2008-04-01 22:15:16

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Fix redundant lvresize message if vg doesn't exist.
	
	BEFORE:
	tools/lvm lvresize -l +4 vg22/lv1linear
	Volume group "vg22" not found
	Volume group vg22 doesn't exist
	
	AFTER:
	tools/lvm lvresize -l +4 vg22/lv1linear
	Volume group "vg22" not found

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.813&r2=1.814
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.93&r2=1.94

--- LVM2/WHATS_NEW	2008/04/01 15:01:30	1.813
+++ LVM2/WHATS_NEW	2008/04/01 22:15:16	1.814
@@ -1,5 +1,6 @@
 Version 2.02.34 -
 ===================================
+  Fix redundant lvresize message if vg doesn't exist.
   Fix another allocation bug with clvmd and large node IDs.
   Add find_lv_in_lv_list() and find_pv_in_pv_list().
   Fix uninitialised variable in clvmd that could cause odd hangs.
--- LVM2/tools/lvresize.c	2008/02/06 12:45:32	1.93
+++ LVM2/tools/lvresize.c	2008/04/01 22:15:16	1.94
@@ -654,10 +654,8 @@
 	log_verbose("Finding volume group %s", lp.vg_name);
 	if (!(vg = vg_lock_and_read(cmd, lp.vg_name, NULL, LCK_VG_WRITE,
 				    CLUSTERED | EXPORTED_VG | LVM_WRITE,
-				    CORRECT_INCONSISTENT))) {
-		log_error("Volume group %s doesn't exist", lp.vg_name);
+				    CORRECT_INCONSISTENT)))
 		return ECMD_FAILED;
-	}
 
 	if (!(r = _lvresize(cmd, vg, &lp)))
 		stack;


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2008-09-18 18:52 agk
  0 siblings, 0 replies; 12+ messages in thread
From: agk @ 2008-09-18 18:52 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2008-09-18 18:51:58

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Prevent resizing an LV while lvconvert is using it.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.952&r2=1.953
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.97&r2=1.98

--- LVM2/WHATS_NEW	2008/09/16 18:05:11	1.952
+++ LVM2/WHATS_NEW	2008/09/18 18:51:58	1.953
@@ -1,5 +1,6 @@
 Version 2.02.40 - 
 ================================
+  Prevent resizing an LV while lvconvert is using it.
   Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
   Fix pvresize to not allow resize if PV has two metadata areas.
   Fix setting of volume limit count if converting to lvm1 format.
--- LVM2/tools/lvresize.c	2008/04/29 15:25:28	1.97
+++ LVM2/tools/lvresize.c	2008/09/18 18:51:58	1.98
@@ -308,6 +308,11 @@
 		return ECMD_FAILED;
 	}
 
+	if (lv->status & CONVERTING) {
+		log_error("Can't resize %s while lvconvert in progress", lv->name);
+		return ECMD_FAILED;
+	}
+
 	alloc = arg_uint_value(cmd, alloc_ARG, lv->alloc);
 
 	if (lp->size) {


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2009-01-15 14:44 wysochanski
  0 siblings, 0 replies; 12+ messages in thread
From: wysochanski @ 2009-01-15 14:44 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2009-01-15 14:44:49

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Fix fsadm lvresize for filesystem block sizes != 1024.
	
	Fixes rhbz 480022.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1020&r2=1.1021
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.99&r2=1.100

--- LVM2/WHATS_NEW	2009/01/10 17:09:40	1.1020
+++ LVM2/WHATS_NEW	2009/01/15 14:44:48	1.1021
@@ -1,5 +1,6 @@
 Version 2.02.44 - 
 ====================================
+  Fix fsadm failure with block size != 1K.
   Fix pvs segfault when run with orphan PV and some VG fields.
   Display a 'dev_size' of zero for missing devices in reports.
   Add pv_mda_size to pvs and vg_mda_size to vgs.
--- LVM2/tools/lvresize.c	2008/11/03 22:14:30	1.99
+++ LVM2/tools/lvresize.c	2009/01/15 14:44:49	1.100
@@ -144,7 +144,7 @@
 		return 0;
 	}
 
-	if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64,
+	if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64 "K",
 			(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
 		log_error("Couldn't generate new LV size string");
 		return 0;
@@ -635,7 +635,7 @@
 				  lp->lv_name);
 			return ECMD_FAILED;
 		}
-		if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64,
+		if (dm_snprintf(size_buf, SIZE_BUF, "%" PRIu64 "K",
 				(uint64_t) lp->extents * vg->extent_size / 2) < 0) {
 		    log_error("Couldn't generate new LV size string");
 		    return ECMD_FAILED;


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2010-03-20  3:44 snitzer
  0 siblings, 0 replies; 12+ messages in thread
From: snitzer @ 2010-03-20  3:44 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	snitzer@sourceware.org	2010-03-20 03:44:04

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Don't allow resizing of internal logical volumes.
	
	Prevent lvresize from being able to resize internal LVs: mirror legs
	(*_mimage_*), mirror log (*_mlog), snapshot placeholder LVs (snapshot*)
	and others.  Resizing these would leads to unexpected metadata and
	sometimes crashes (in case of growing snapshot*).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1471&r2=1.1472
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.119&r2=1.120

--- LVM2/WHATS_NEW	2010/03/19 18:33:55	1.1471
+++ LVM2/WHATS_NEW	2010/03/20 03:44:04	1.1472
@@ -1,5 +1,6 @@
 Version 2.02.63 - 
 ================================
+  Don't allow resizing of internal logical volumes.
   Fix libdevmapper-event pkgconfig version string to match libdevmapper.
   Avoid scanning all pvs in the system if operating on a device with mdas.
   Add configure --with-clvmd=singlenode to use clvmd w/o cluster infrastructure.
--- LVM2/tools/lvresize.c	2010/02/03 03:58:08	1.119
+++ LVM2/tools/lvresize.c	2010/03/20 03:44:04	1.120
@@ -323,6 +323,11 @@
 
 	lv = lvl->lv;
 
+	if (!lv_is_visible(lv)) {
+		log_error("Can't resize internal logical volume %s", lv->name);
+		return ECMD_FAILED;
+	}
+
 	if (lv->status & LOCKED) {
 		log_error("Can't resize locked LV %s", lv->name);
 		return ECMD_FAILED;


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2011-12-01  0:13 jbrassow
  0 siblings, 0 replies; 12+ messages in thread
From: jbrassow @ 2011-12-01  0:13 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	jbrassow@sourceware.org	2011-12-01 00:13:16

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Don't allow size change of RAID LV that is tracking changes for a split image
	Don't allow size change of RAID sub-LVs independently

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2201&r2=1.2202
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.143&r2=1.144

--- LVM2/WHATS_NEW	2011/12/01 00:09:34	1.2201
+++ LVM2/WHATS_NEW	2011/12/01 00:13:16	1.2202
@@ -1,7 +1,9 @@
 Version 2.02.89 - 
 ==================================
-  Don't allow name change of RAID LV while tracking a split image.
-  Do not allow users to change the name of RAID sub-LVs
+  Don't allow size change of RAID LV that is tracking changes for a split image
+  Don't allow size change of RAID sub-LVs independently
+  Don't allow name change of RAID LV that is tracking changes for a split image
+  Do not allow users to change the name of RAID sub-LVs independently
   Do not allow users to change permissions on RAID sub-LVs
   Support the ability to replace specific devices in a RAID array via lvconvert.
   Add activation/use_linear_target enabled by default.
--- LVM2/tools/lvresize.c	2011/11/08 12:19:53	1.143
+++ LVM2/tools/lvresize.c	2011/12/01 00:13:16	1.144
@@ -361,6 +361,19 @@
 		return ECMD_FAILED;
 	}
 
+	if (lvl->lv->status & (RAID_IMAGE | RAID_META)) {
+		log_error("Cannot resize a RAID %s directly",
+			  (lvl->lv->status & RAID_IMAGE) ? "image" :
+			  "metadata area");
+		return ECMD_FAILED;
+	}
+
+	if (lv_is_raid_with_tracking(lvl->lv)) {
+		log_error("Cannot resize %s while it is tracking a split image",
+			  lvl->lv->name);
+		return ECMD_FAILED;
+	}
+
 	if (arg_count(cmd, stripes_ARG)) {
 		if (vg->fid->fmt->features & FMT_SEGMENTS)
 			lp->stripes = arg_uint_value(cmd, stripes_ARG, 1);


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2012-01-09 12:31 zkabelac
  0 siblings, 0 replies; 12+ messages in thread
From: zkabelac @ 2012-01-09 12:31 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2012-01-09 12:31:53

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Check for error code in _adjust_policy_params
	
	If error is detected in _adjust_policy_params, break further command processing.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2217&r2=1.2218
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.146&r2=1.147

--- LVM2/WHATS_NEW	2012/01/05 15:38:18	1.2217
+++ LVM2/WHATS_NEW	2012/01/09 12:31:52	1.2218
@@ -1,5 +1,6 @@
 Version 2.02.89 - 
 ==================================
+  Add check for error in _adjust_policy_params() (lvextend --use-policies).
   Supports rounding of percentage (%LV, %VG...) for LV resize upward.
   Use dmeventd_lvm2_command in dmeventd plugins snapshot, raid, mirror.
   Add helper dmeventd_lvm2_command() into libdevmapper-event-lvm2 library.
--- LVM2/tools/lvresize.c	2012/01/05 15:38:19	1.146
+++ LVM2/tools/lvresize.c	2012/01/09 12:31:53	1.147
@@ -421,7 +421,8 @@
 			log_error("Policy-based resize is supported only for snapshot and thin pool volumes.");
 			return ECMD_FAILED;
 		}
-		_adjust_policy_params(cmd, lv, lp);
+		if (!_adjust_policy_params(cmd, lv, lp))
+			return ECMD_FAILED;
 	}
 
 	if (!lv_is_visible(lv)) {


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2012-02-08 10:56 zkabelac
  0 siblings, 0 replies; 12+ messages in thread
From: zkabelac @ 2012-02-08 10:56 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2012-02-08 10:56:18

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Set status for error path
	
	Do not leave status unitialized, since in some cases, it's tested,
	when the function returns error.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2261&r2=1.2262
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.148&r2=1.149

--- LVM2/WHATS_NEW	2012/02/08 10:52:45	1.2261
+++ LVM2/WHATS_NEW	2012/02/08 10:56:17	1.2262
@@ -1,5 +1,6 @@
 Version 2.02.91 -
 ===================================
+  Set status in _fsadm_cmd() for error path.
   Add missing deps for lvm2api for rebuild when lvm-internal is changed.
   Fix resource leaks for failing allocation of formats (lvm1/2,pool).
   Release allocated resources in error path for composite_filter_create().
--- LVM2/tools/lvresize.c	2012/01/19 15:25:39	1.148
+++ LVM2/tools/lvresize.c	2012/02/08 10:56:18	1.149
@@ -159,6 +159,9 @@
 
 	argv[i++] = (fcmd == FSADM_CMD_RESIZE) ? "resize" : "check";
 
+	if (status)
+		*status = -1;
+
 	if (dm_snprintf(lv_path, PATH_MAX, "%s%s/%s", cmd->dev_dir, lp->vg_name,
 			lp->lv_name) < 0) {
 		log_error("Couldn't create LV path for %s", lp->lv_name);


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2012-04-11 12:36 zkabelac
  0 siblings, 0 replies; 12+ messages in thread
From: zkabelac @ 2012-04-11 12:36 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2012-04-11 12:36:38

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Lvresize rounds upward
	
	When given lvresize new size - round upward for stripes - unless we use % and
	we are at the border of free extents.
	
	This patch is not a complete fix and few more cases will need special care.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2379&r2=1.2380
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.152&r2=1.153

--- LVM2/WHATS_NEW	2012/04/11 12:33:34	1.2379
+++ LVM2/WHATS_NEW	2012/04/11 12:36:37	1.2380
@@ -1,5 +1,6 @@
 Version 2.02.96 - 
 ================================
+  For lvresize round upward when specifying number of extents.
   For lvcreate with %FREE support rounding downward strip alignment.
   Change message severity to log_very_verbose for missing dev info in udev db.
   Fix problems when specifying PVs during RAID down-converts.
--- LVM2/tools/lvresize.c	2012/04/11 12:30:48	1.152
+++ LVM2/tools/lvresize.c	2012/04/11 12:36:38	1.153
@@ -676,7 +676,11 @@
 
 		size_rest = seg_size % (lp->stripes * stripesize_extents);
 		/* Round toward the original size. */
-		if (size_rest && lp->extents < lv->le_count) {
+		if (size_rest &&
+		    ((lp->extents < lv->le_count) ||
+		     !lp->percent ||
+		     (vg->free_count >= (lp->extents - lv->le_count - size_rest +
+					 (lp->stripes * stripesize_extents))))) {
 			log_print("Rounding size (%d extents) up to stripe "
 				  "boundary size for segment (%d extents)",
 				  lp->extents, lp->extents - size_rest +
@@ -689,7 +693,6 @@
 				  lp->extents, lp->extents - size_rest);
 			lp->extents = lp->extents - size_rest;
 		}
-
 	}
 
 	if (lp->extents < lv->le_count) {


^ permalink raw reply	[flat|nested] 12+ messages in thread
* LVM2 ./WHATS_NEW tools/lvresize.c
@ 2012-04-11 12:40 zkabelac
  0 siblings, 0 replies; 12+ messages in thread
From: zkabelac @ 2012-04-11 12:40 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2012-04-11 12:40:04

Modified files:
	.              : WHATS_NEW 
	tools          : lvresize.c 

Log message:
	Fix lvresize for thin pool
	
	When resizing thin pool - we need to use strip info from  _tdata volume.
	In future more generic solution will be necessary once we start to support
	lvconvert (resize of stacked devices and stay properly aligned).
	For now we just allow striped or linear LV so this code will work.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2380&r2=1.2381
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.153&r2=1.154

--- LVM2/WHATS_NEW	2012/04/11 12:36:37	1.2380
+++ LVM2/WHATS_NEW	2012/04/11 12:40:03	1.2381
@@ -1,5 +1,6 @@
 Version 2.02.96 - 
 ================================
+  Fix lvresize of thin pool for stipped devices.
   For lvresize round upward when specifying number of extents.
   For lvcreate with %FREE support rounding downward strip alignment.
   Change message severity to log_very_verbose for missing dev info in udev db.
--- LVM2/tools/lvresize.c	2012/04/11 12:36:38	1.153
+++ LVM2/tools/lvresize.c	2012/04/11 12:40:04	1.154
@@ -590,7 +590,10 @@
 	if ((lp->extents > lv->le_count) &&
 	    !(lp->stripes == 1 || (lp->stripes > 1 && lp->stripe_size))) {
 		/* FIXME Don't assume mirror seg will always be AREA_LV */
-		dm_list_iterate_items(seg, seg_mirrors ? &seg_lv(mirr_seg, 0)->segments : &lv->segments) {
+		/* FIXME We will need to support resize for metadata LV as well,
+		 *       and data LV could be any type (i.e. mirror)) */
+		dm_list_iterate_items(seg, seg_mirrors ? &seg_lv(mirr_seg, 0)->segments :
+				      lv_is_thin_pool(lv) ? &seg_lv(first_seg(lv), 0)->segments : &lv->segments) {
 			if (!seg_is_striped(seg))
 				continue;
 
@@ -739,13 +742,6 @@
 			log_warn("Thin pool volumes do not have filesystem.");
 			lp->resizefs = 0;
 		}
-
-		if (!lp->stripes) {
-			/* Try to use the same strip settings for underlying pool data LV */
-			lp->stripes = last_seg(seg_lv(first_seg(lv), 0))->area_count;
-			if (!lp->stripe_size)
-				lp->stripe_size = last_seg(seg_lv(first_seg(lv), 0))->stripe_size;
-		}
 	}
 
 	if ((lp->resize == LV_REDUCE) && lp->argc)


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-04-11 12:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-11 18:47 LVM2 ./WHATS_NEW tools/lvresize.c agk
2004-05-24 15:58 agk
2004-11-18 19:49 agk
2008-04-01 22:15 wysochanski
2008-09-18 18:52 agk
2009-01-15 14:44 wysochanski
2010-03-20  3:44 snitzer
2011-12-01  0:13 jbrassow
2012-01-09 12:31 zkabelac
2012-02-08 10:56 zkabelac
2012-04-11 12:36 zkabelac
2012-04-11 12:40 zkabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).