[lvm-devel] new interface to columns.h: making assumptions

Jim Meyering jim at meyering.net
Fri Aug 31 13:08:44 UTC 2007


Hi Alasdair,

Regarding lvs-like code and columns.h,

Per our discussion, I'm assuming that all values are "string" or
"numeric" (aka intmax_t).  This leads to cleaner app code (and fewer
public symbols), e.g., a boolean function to test whether a value
is string/numeric vs. one to return an enum like LVM_STR, LVM_NUM,
LVM_WHATEVER_ELSE.  However, you spoke of adding new columns to
columns.h.  If you think there's a significant chance of adding a new
column that is neither string nor numeric, please let me know.

Jim




More information about the lvm-devel mailing list