mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-02 04:22:02 +03:00
Default stripesize 64k & config file setting for it;
Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
This commit is contained in:
@ -13,4 +13,3 @@
|
||||
#define ECMD_FAILED 5
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -53,7 +53,7 @@ static int _get_env_vars(struct cmd_context *cmd)
|
||||
|
||||
static void _init_logging(struct cmd_context *cmd)
|
||||
{
|
||||
char *open_mode = "a";
|
||||
const char *open_mode = "a";
|
||||
time_t t;
|
||||
|
||||
const char *log_file;
|
||||
@ -329,7 +329,7 @@ static int _init_formats(struct cmd_context *cmd)
|
||||
struct config_node *cn;
|
||||
struct config_value *cv;
|
||||
|
||||
struct format_type *(*init_format_fn) (struct cmd_context * cmd);
|
||||
struct format_type *(*init_format_fn) (struct cmd_context *);
|
||||
|
||||
void *lib;
|
||||
|
||||
@ -452,7 +452,7 @@ struct cmd_context *create_toolcontext(struct arg *the_args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void destroy_formats(struct list *formats)
|
||||
static void _destroy_formats(struct list *formats)
|
||||
{
|
||||
struct list *fmtl, *tmp;
|
||||
struct format_type *fmt;
|
||||
@ -475,7 +475,7 @@ void destroy_toolcontext(struct cmd_context *cmd)
|
||||
|
||||
cache_destroy();
|
||||
label_exit();
|
||||
destroy_formats(&cmd->formats);
|
||||
_destroy_formats(&cmd->formats);
|
||||
cmd->filter->destroy(cmd->filter);
|
||||
pool_destroy(cmd->mem);
|
||||
dev_cache_exit();
|
||||
|
@ -45,7 +45,7 @@ struct cmd_context {
|
||||
/* format handler allocates all objects from here */
|
||||
struct pool *mem;
|
||||
|
||||
struct format_type *fmt; /* Current format to use by default */
|
||||
const struct format_type *fmt; /* Current format to use by default */
|
||||
struct format_type *fmt_backup; /* Format to use for backups */
|
||||
|
||||
struct list formats; /* Available formats */
|
||||
|
Reference in New Issue
Block a user