]> sourceware.org Git - lvm2.git/commit
report: properly set "undefined" reserved value for cache_policy field
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 18 Dec 2014 14:11:25 +0000 (15:11 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 18 Dec 2014 14:21:21 +0000 (15:21 +0100)
commitda9da0d8c2201c244d06a713134e96d2a26a0db5
treeae93df1124296b7562cb20560382d926fb6e1ca3
parent028ff309472834e82fe4b849ea4c243feb5098b9
report: properly set "undefined" reserved value for cache_policy field

Use helper macros to handle reserved values and also define "undefined"
reserved value as:

FIELD_RESERVED_VALUE(cache_policy, cache_policy_undef, "", "", "undefined")

Which means:

 - print "" if the cache_policy value is undefined (the first name for this reserved value is "")
 - recognize "undefined" reserved name as synonym to ""
   (so statements like "lvs -S cache_policy=undefined" are still recognized)
lib/report/report.c
lib/report/values.h
This page took 0.030826 seconds and 5 git commands to generate.