]> sourceware.org Git - lvm2.git/commitdiff
Don't hide snapshots from default 'lvs' output.
authorAlasdair Kergon <agk@redhat.com>
Fri, 23 Sep 2005 16:22:17 +0000 (16:22 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 23 Sep 2005 16:22:17 +0000 (16:22 +0000)
WHATS_NEW
lib/report/report.c
tools/reporter.c

index 822477872961645e2b58cd1abedccffe8cc0d6c8..95d7ec454c773a63abff1e8f0daddd3031e5a654 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.01.15 - 
 =================================
+  Don't hide snapshots from default 'lvs' output.
   Add is_dm_major() for use in duplicate device detection in lvmcache_add().
   Really switch device number in lvmcache when it says it is doing so.
   Option for bitset memory allocation using malloc as well as pool.
index f0e2b78dcad27ceb4d19f3ef852ff4d2dd864c52..d4f6129f540dbd295d5ec3cc4c4a1879e424a9b2 100644 (file)
@@ -524,7 +524,8 @@ static int _lvname_disp(struct report_handle *rh, struct field *field,
        char *repstr;
        size_t len;
 
-       if (lv->status & VISIBLE_LV) {
+       /* FIXME Remove need for snapshot special case */
+       if (lv->status & VISIBLE_LV || lv_is_cow(lv)) {
                repstr = lv->name;
                return _string_disp(rh, field, &repstr);
        }
index 2cc172ac6fdefc6a460ebfe06c99242b55da870d..4cee509cc84896a093e557c441969ceb50358ad9 100644 (file)
@@ -35,7 +35,9 @@ static int _vgs_single(struct cmd_context *cmd, const char *vg_name,
 static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv,
                       void *handle)
 {
-       if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV))
+       /* FIXME Avoid snapshot special-case */
+       if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV) &&
+           !(lv_is_cow(lv)))
                return ECMD_PROCESSED;
 
        if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL))
This page took 0.047785 seconds and 5 git commands to generate.