mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Avoid trailing separator in reports when there are hidden sort fields.
This commit is contained in:
parent
d59b2474e1
commit
af998ff6c2
@ -1,5 +1,6 @@
|
||||
Version 1.02.19 -
|
||||
====================================
|
||||
Avoid trailing separator in reports when there are hidden sort fields.
|
||||
Fix segfault in 'dmsetup status' without --showkeys against crypt target.
|
||||
Deal with some more compiler warnings.
|
||||
Introduce _add_field() and _is_same_field() to libdm-report.c.
|
||||
|
@ -316,7 +316,15 @@ static struct field_properties * _add_field(struct dm_report *rh,
|
||||
}
|
||||
|
||||
fp->flags |= flags;
|
||||
list_add(&rh->field_props, &fp->list);
|
||||
|
||||
/*
|
||||
* Place hidden fields at the front so list_end() will
|
||||
* tell us when we've reached the last visible field.
|
||||
*/
|
||||
if (fp->flags & FLD_HIDDEN)
|
||||
list_add_h(&rh->field_props, &fp->list);
|
||||
else
|
||||
list_add(&rh->field_props, &fp->list);
|
||||
|
||||
return fp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user