Hide merging snapshots from "lvs" command. The prefix "snapshot" is reserved and names with this prefix cannot be created by the user, so this change is safe. Signed-off-by: Mikulas Patocka --- tools/toollib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: LVM2.2.02.39/tools/toollib.c =================================================================== --- LVM2.2.02.39.orig/tools/toollib.c 2008-07-30 20:05:05.000000000 +0200 +++ LVM2.2.02.39/tools/toollib.c 2008-07-30 20:06:38.000000000 +0200 @@ -175,7 +175,8 @@ int process_each_lv_in_vg(struct cmd_con } list_iterate_items(lvl, &vg->lvs) { - if (lvl->lv->status & SNAPSHOT) + /* Names starting with "snapshot" are reserved */ + if (!strncmp(lvl->lv->name, "snapshot", strlen("snapshot"))) continue; /* Should we process this LV? */