1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Don't hide snapshots from default 'lvs' output.

This commit is contained in:
Alasdair Kergon 2005-09-23 16:22:17 +00:00
parent 4afac84c54
commit 540b379902
3 changed files with 6 additions and 2 deletions

View File

@ -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.

View 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);
}

View 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))