Skip to contentSkip to conversation

trivial: fix a comment mistake

PATCH New Eric Ren 2 participants 5 messages Jul 8, 2017 – Jul 10, 2017

lore
Share & tools
lore

Eric Ren

author
#0 lore raw

PATCH 1/3 trivial: fix a comment mistake

Comments "the pool was originally inactive, deactivate it", should be "...orginally ative".

---
 lib/metadata/lv_manip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/metadata/lv_manip.c +1 -1
index fbe0aed..9a2548f 100644
@@ -7310,7 +7310,7 @@ static int _vg_check_features(struct volume_group *vg,
  * If lp->thin OR lp->activate is AY*, activate the pool if not already active.
  * If lp->thin, create thin LV within the pool - as a snapshot if lp->snapshot.
  *   If lp->activate is AY*, activate it.
- *   If lp->activate was AN* and the pool was originally inactive, deactivate it.
+ *   If lp->activate is AN* and the pool was originally active, deactivate it.
  */
 static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
 					       struct lvcreate_params *lp,
Signature · 1 line
2.10.2
author
#1 lore raw

PATCH 2/3 cleanup: fix vavious typos

form -> from
accomodate -> accommodate

---
 libdm/misc/dm-log-userspace.h | 2 +-
 tools/command.h               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libdm/misc/dm-log-userspace.h +1 -1
index 6418300..a770ae6 100644
@@ -34,7 +34,7 @@
  *	opt = addr.nl_groups;
  *	setsockopt(fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &opt, sizeof(opt));
  *
- * User-space will then wait to receive requests form the kernel, which it
+ * User-space will then wait to receive requests from the kernel, which it
  * will process as described below.  The requests are received in the form,
  * ((struct dm_ulog_request) + (additional data)).  Depending on the request
  * type, there may or may not be 'additional data'.  In the descriptions below,
tools/command.h +1 -1
index a84e374..c2e3e6a 100644
@@ -150,7 +150,7 @@ struct cmd_rule {
 /*
  * Array sizes
  *
- * CMD_RO_ARGS needs to accomodate a list of options,
+ * CMD_RO_ARGS needs to accommodate a list of options,
  * of which one is required after which the rest are
  * optional.
  */
Signature · 1 line
2.10.2
author
#2 lore raw

PATCH 2/3 cleanup: fix vavious typos

Oops, typo "vavious" => "various", or "some"

Thanks,
Eric

Quoted 35 lines · Eric Ren

form -> from
accomodate -> accommodate

---
  libdm/misc/dm-log-userspace.h | 2 +-
  tools/command.h               | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
libdm/misc/dm-log-userspace.h +1 -1
index 6418300..a770ae6 100644
@@ -34,7 +34,7 @@
   *	opt = addr.nl_groups;
   *	setsockopt(fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &opt, sizeof(opt));
   *
- * User-space will then wait to receive requests form the kernel, which it
+ * User-space will then wait to receive requests from the kernel, which it
   * will process as described below.  The requests are received in the form,
   * ((struct dm_ulog_request) + (additional data)).  Depending on the request
   * type, there may or may not be 'additional data'.  In the descriptions below,
tools/command.h +1 -1
index a84e374..c2e3e6a 100644
@@ -150,7 +150,7 @@ struct cmd_rule {
  /*
   * Array sizes
   *
- * CMD_RO_ARGS needs to accomodate a list of options,
+ * CMD_RO_ARGS needs to accommodate a list of options,
   * of which one is required after which the rest are
   * optional.
   */
author
#3 lore raw

PATCH 3/3 man: specify slow device when creating origin LV

In reply to Eric Ren

Also make the slow device name consistent everywhere.

---
 man/lvmcache.7_main | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
man/lvmcache.7_main +2 -2
index 1f29185..6672ad3 100644
@@ -41,7 +41,7 @@ Create an LV or identify an existing LV to be the origin LV.
 
 .I Example
 .br
-# lvcreate -n lvol0 -L 100G vg
+# lvcreate -n lvol0 -L 100G vg /dev/slow
 
 
 .SS 1. create CacheDataLV
@@ -199,7 +199,7 @@ pool sub-LVs redundant.
 .I Example
 .nf
 0. Create an origin LV we wish to cache
-# lvcreate -L 10G -n lv1 vg /dev/slow_devs
+# lvcreate -L 10G -n lv1 vg /dev/slow
 
 1. Create a 2-way RAID1 cache data LV
 # lvcreate --type raid1 -m 1 -L 1G -n cache1 vg \\
Signature · 1 line
2.10.2
#4 lore raw

PATCH 1/3 trivial: fix a comment mistake

In reply to Eric Ren

Dne 8.7.2017 v 19:15 Eric Ren napsal(a):

Quoted 13 lines

Comments "the pool was originally inactive, deactivate it", should be "...orginally ative".

---
  lib/metadata/lv_manip.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/metadata/lv_manip.c +0 -0
index fbe0aed..9a2548f 100644

lib/metadata/lv_manip.c static int _vg_check_features(struct volume_group *vg, · line 7314

Quoted 6 lines
lib/metadata/lv_manip.c +1 -1
@@ -7310,7 +7310,7 @@ static int _vg_check_features(struct volume_group *vg,
   * If lp->thin OR lp->activate is AY*, activate the pool if not already active.
   * If lp->thin, create thin LV within the pool - as a snapshot if lp->snapshot.
   *   If lp->activate is AY*, activate it.
- *   If lp->activate was AN* and the pool was originally inactive, deactivate it.
+ *   If lp->activate is AN* and the pool was originally active, deactivate it.
   */

Hi

Comment was correct here about preserving inactive state here. Rest of patches were upstreamed...

Regards

Zdenek