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:
parent
4afac84c54
commit
540b379902
@ -1,5 +1,6 @@
|
|||||||
Version 2.01.15 -
|
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().
|
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.
|
Really switch device number in lvmcache when it says it is doing so.
|
||||||
Option for bitset memory allocation using malloc as well as pool.
|
Option for bitset memory allocation using malloc as well as pool.
|
||||||
|
@ -524,7 +524,8 @@ static int _lvname_disp(struct report_handle *rh, struct field *field,
|
|||||||
char *repstr;
|
char *repstr;
|
||||||
size_t len;
|
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;
|
repstr = lv->name;
|
||||||
return _string_disp(rh, field, &repstr);
|
return _string_disp(rh, field, &repstr);
|
||||||
}
|
}
|
||||||
|
@ -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,
|
static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||||
void *handle)
|
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;
|
return ECMD_PROCESSED;
|
||||||
|
|
||||||
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL))
|
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL))
|
||||||
|
Loading…
Reference in New Issue
Block a user