1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/conf
Peter Rajnoha 125cd06698 conf: make time format configurable
Make it possible to define format for time that is displayed.
The way the format is defined is equal to the way that is used
for strftime function, although not all formatting options as
used in strftime are available for LVM2 - the set is restricted
(e.g. we do not allow newline to be printed). The lvm.conf
comments contain the whole list that LVM2 accepts for time format
together with brief description (copied from strftime man page).

For example:
(defaults used - the format is the same as used before this patch)
$ lvs -o+time vg/lvol0 vg/lvol1
  LV    VG   Attr       LSize Time
  lvol0 vg   -wi-a----- 4.00m 2015-06-25 16:18:34 +0200
  lvol1 vg   -wi-a----- 4.00m 2015-06-29 09:17:11 +0200

(using 'time_format = "@%s"' in lvm.conf - number of seconds
since the Epoch)
$ lvs -o+time vg/lvol0 vg/lvol1
  LV    VG   Attr       LSize Time
  lvol0 vg   -wi-a----- 4.00m @1435241914
  lvol1 vg   -wi-a----- 4.00m @1435562231
2015-06-29 14:30:35 +02:00
..
command_profile_template.profile.in conf: update profile templates for recent changes 2015-02-11 13:22:31 +01:00
example.conf.base lvm.conf: add more information to the comment header 2015-05-14 10:52:24 -05:00
example.conf.in conf: make time format configurable 2015-06-29 14:30:35 +02:00
lvmlocal.conf.base config: remove duplication of settings 2015-04-21 14:55:03 -05:00
lvmlocal.conf.in config: regenerate lvm.conf.in and lvmlocal.conf.in 2015-06-29 13:43:28 +02:00
Makefile.in make: use lvmconfig ... --withspaces when generating lvm.conf and lvmlocal.conf 2015-06-24 13:20:38 +02:00
metadata_profile_template.profile.in conf: update profile templates for recent changes 2015-02-11 13:22:31 +01:00
thin-generic.profile profile: add thin-generic.profile 2014-06-13 09:56:29 +02:00
thin-performance.profile release 2.02.103 2013-10-04 14:32:23 +01:00