mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Fix issue in the lszdev command where column names if using the --pairs command line switch can contain characters that are not allowed to be used as variable names in a shell environment. Replace bad characters in column names by an underscore if the --shell command line switch is specified along with the --pairs switch. The additional --shell switch mimics what is already available in the lsblk command and thus it shall be used along with the --pairs switch. Signed-off-by: Daniel S. Haischt <modean@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
30 lines
712 B
C
30 lines
712 B
C
/*
|
|
* zdev - Modify and display the persistent configuration of devices
|
|
*
|
|
* Copyright IBM Corp. 2016, 2017
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*/
|
|
|
|
#ifndef TABLE_ATTRIBS_H
|
|
#define TABLE_ATTRIBS_H
|
|
|
|
#include "misc.h"
|
|
|
|
struct util_list;
|
|
struct devtype;
|
|
struct subtype;
|
|
struct attrib;
|
|
|
|
struct table_attrib {
|
|
struct subtype *st;
|
|
struct attrib *attrib;
|
|
};
|
|
|
|
struct table_attrib *table_attrib_new(struct subtype *, struct attrib *);
|
|
void table_attribs_show(struct util_list *, int, int, int, struct devtype *);
|
|
void table_attribs_show_details(struct util_list *, struct devtype *);
|
|
|
|
#endif /* TABLE_ATTRIBS_H */
|