Message ID | 20230901180235.23980-13-mwilck@suse.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
Series | multipath-tools: user-friendly names rework | expand |
On Fri, Sep 01, 2023 at 08:02:25PM +0200, mwilck@suse.com wrote: > From: Martin Wilck <mwilck@suse.com> > > We will use this function in a more generic way, give it a more > generic name. > Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com> > Signed-off-by: Martin Wilck <mwilck@suse.com> > --- > libmultipath/alias.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/libmultipath/alias.c b/libmultipath/alias.c > index 0759643..af2f647 100644 > --- a/libmultipath/alias.c > +++ b/libmultipath/alias.c > @@ -606,8 +606,8 @@ static int write_bindings_file(const Bindings *bindings, int fd) > return 0; > } > > -static int fix_bindings_file(const struct config *conf, > - const Bindings *bindings) > +static int update_bindings_file(const struct config *conf, > + const Bindings *bindings) > { > int rc; > int fd = -1; > @@ -777,7 +777,7 @@ int check_alias_settings(const struct config *conf) > rc = _check_bindings_file(conf, file, &bindings); > pthread_cleanup_pop(1); > if (rc == -1 && can_write && !conf->bindings_read_only) > - rc = fix_bindings_file(conf, &bindings); > + rc = update_bindings_file(conf, &bindings); > else if (rc == -1) > condlog(0, "ERROR: bad settings in read-only bindings file %s", > conf->bindings_file); > -- > 2.41.0 -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel
diff --git a/libmultipath/alias.c b/libmultipath/alias.c index 0759643..af2f647 100644 --- a/libmultipath/alias.c +++ b/libmultipath/alias.c @@ -606,8 +606,8 @@ static int write_bindings_file(const Bindings *bindings, int fd) return 0; } -static int fix_bindings_file(const struct config *conf, - const Bindings *bindings) +static int update_bindings_file(const struct config *conf, + const Bindings *bindings) { int rc; int fd = -1; @@ -777,7 +777,7 @@ int check_alias_settings(const struct config *conf) rc = _check_bindings_file(conf, file, &bindings); pthread_cleanup_pop(1); if (rc == -1 && can_write && !conf->bindings_read_only) - rc = fix_bindings_file(conf, &bindings); + rc = update_bindings_file(conf, &bindings); else if (rc == -1) condlog(0, "ERROR: bad settings in read-only bindings file %s", conf->bindings_file);