master - system_id: refactor check for allowed system_id
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=05ac8367980afb0b660fc312b228337e256a38e8 Commit: 05ac8367980afb0b660fc312b228337e256a38e8 Parent: d3ca18e489d48cc7c7b2a877b95b5a9a324e8e30 Author: David Teigland <[email protected]> AuthorDate: Mon Nov 30 11:46:55 2015 -0600 Committer: David Teigland <[email protected]> CommitterDate: Mon Nov 30 11:46:55 2015 -0600
system_id: refactor check for allowed system_id
Refactor the code that checks for an allowable system_id so that it can be used from other places.
--- lib/metadata/metadata-exported.h | 2 + lib/metadata/metadata.c | 49 ++++++++++++++++++++++++------------- 2 files changed, 34 insertions(+), 17 deletions(-)
lib/metadata/metadata-exported.h +2 -0
@@ -1238,4 +1238,6 @@ int validate_vg_rename_params(struct cmd_context *cmd,int is_lockd_type (const char *lock_type); +int is_system_id_allowed (struct cmd_context *cmd,const char *system_id); +#endif
lib/metadata/metadata.c +32 -17
78 lines not on this page · raw message