Message ID | b437d75c-7226-19bc-c709-9b706ef853eb@redhat.com (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
On Tue, Jun 19, 2018 at 03:07:01PM -0500, Eric Sandeen wrote: > This should have been removed when I removed the dft->type > tracking. > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Looks ok, Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> --D > --- > > diff --git a/mkfs/config.c b/mkfs/config.c > index 70d752c..e4534c3 100644 > --- a/mkfs/config.c > +++ b/mkfs/config.c > @@ -549,9 +549,8 @@ config_stat_check( > * If not specified or if above fails, try either cli-spec'd file or "default" > * in MKFS_XFS_CONF_DIR. > * > - * If any config file is successfully opened, dft->type is set to reflect the > - * source, an fd is returned, and the absolute path is returned in **fpath, > - * which must be free()'d by the caller. > + * If any config file is successfully opened, an fd is returned, and the > + * absolute path is returned in **fpath, which must be free()'d by the caller. > * > * If a cli-specified file is not found -1 is returned and errno set. Otherwise > * the file descriptor is returned. > @@ -559,7 +558,6 @@ config_stat_check( > int > open_config_file( > const char *config_file, > - struct mkfs_default_params *dft, > char **fpath) > { > int dirfd = -1, fd = -1, len, ret = 0; > diff --git a/mkfs/config.h b/mkfs/config.h > index f4af2c7..d338347 100644 > --- a/mkfs/config.h > +++ b/mkfs/config.h > @@ -79,7 +79,6 @@ struct mkfs_default_params { > int > open_config_file( > const char *cli_config_file, > - struct mkfs_default_params *dft, > char **fpath); > > int > diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c > index 9d85eab..9802150 100644 > --- a/mkfs/xfs_mkfs.c > +++ b/mkfs/xfs_mkfs.c > @@ -3791,7 +3791,7 @@ _("respecification of configuration not allowed\n")); > } > } > > - fd = open_config_file(cli_config_file, &dft, &config_file); > + fd = open_config_file(cli_config_file, &config_file); > if (fd >= 0) { > ret = parse_defaults_file(fd, &dft, config_file); > if (ret) { > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Jun 19, 2018 at 03:07:01PM -0500, Eric Sandeen wrote: > This should have been removed when I removed the dft->type > tracking. > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org> Luis -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/mkfs/config.c b/mkfs/config.c index 70d752c..e4534c3 100644 --- a/mkfs/config.c +++ b/mkfs/config.c @@ -549,9 +549,8 @@ config_stat_check( * If not specified or if above fails, try either cli-spec'd file or "default" * in MKFS_XFS_CONF_DIR. * - * If any config file is successfully opened, dft->type is set to reflect the - * source, an fd is returned, and the absolute path is returned in **fpath, - * which must be free()'d by the caller. + * If any config file is successfully opened, an fd is returned, and the + * absolute path is returned in **fpath, which must be free()'d by the caller. * * If a cli-specified file is not found -1 is returned and errno set. Otherwise * the file descriptor is returned. @@ -559,7 +558,6 @@ config_stat_check( int open_config_file( const char *config_file, - struct mkfs_default_params *dft, char **fpath) { int dirfd = -1, fd = -1, len, ret = 0; diff --git a/mkfs/config.h b/mkfs/config.h index f4af2c7..d338347 100644 --- a/mkfs/config.h +++ b/mkfs/config.h @@ -79,7 +79,6 @@ struct mkfs_default_params { int open_config_file( const char *cli_config_file, - struct mkfs_default_params *dft, char **fpath); int diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 9d85eab..9802150 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -3791,7 +3791,7 @@ _("respecification of configuration not allowed\n")); } } - fd = open_config_file(cli_config_file, &dft, &config_file); + fd = open_config_file(cli_config_file, &config_file); if (fd >= 0) { ret = parse_defaults_file(fd, &dft, config_file); if (ret) {
This should have been removed when I removed the dft->type tracking. Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html