mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: add functionality to read site-specific settings
Modify the dev_get_setting_list function to get the site-specific attributes of the device. The new site_id parameter for this function must be less than SITE_FALLBACK to read the site-specific attributes. As SITE_FALLBACK setting is same as persistent setting, we do not need a separate read function for it. Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
2e89722ef0
commit
d66ace8121
@@ -154,7 +154,7 @@ static int count_exportable(struct device *dev, config_t config)
|
||||
struct setting *s;
|
||||
int count;
|
||||
|
||||
list = device_get_setting_list(dev, config);
|
||||
list = device_get_setting_list(dev, config, SITE_FALLBACK);
|
||||
if (!list)
|
||||
return 0;
|
||||
count = 0;
|
||||
@@ -462,7 +462,7 @@ static exit_code_t handle_setting(const char *filename, int lineno,
|
||||
} else if (dev) {
|
||||
/* We're inside a device section. */
|
||||
attribs = dev->subtype->dev_attribs;
|
||||
list = device_get_setting_list(dev, config);
|
||||
list = device_get_setting_list(dev, config, SITE_FALLBACK);
|
||||
} else
|
||||
return EXIT_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user