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.44/tools/toollib.c =================================================================== --- LVM2.2.02.44.orig/tools/toollib.c 2008-12-22 10:00:51.000000000 +0100 +++ LVM2.2.02.44/tools/toollib.c 2009-02-20 14:30:40.000000000 +0100 @@ -119,7 +119,8 @@ int process_each_lv_in_vg(struct cmd_con } dm_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? */