LVM2/lib commands/toolcontext.c mm/memlock.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-03-09 03:16:11
Modified files:
lib/commands : toolcontext.c
lib/mm : memlock.c
Log message:
Misc cleanups in the new mlock code, incl. improving some variable names & messages; using more statics (for now) to avoid redundant recalculation; validating config file just once on loading; keeping maps file open.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.91&r2=1.92
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mm/memlock.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20
lib/commands/toolcontext.c +7 -0
@@ -201,6 +201,8 @@mode_t old_umask;const char *read_ahead;struct stat st; +const struct config_node *cn; +struct config_value *cv;/* umask */ cmd->default_settings.umask = find_config_tree_int(cmd,
@@ -303,6 +305,11 @@"global/si_unit_consistency" , DEFAULT_SI_UNIT_CONSISTENCY); +if ((cn =find_config_tree_node (cmd,"activation/mlock_filter" ))) +for (cv = cn->v; cv; cv = cv->next) +if ((cv->type !=CFG_STRING ) || !cv->v.str[0 ]) +log_error ("Ignoring invalid activation/mlock_filter entry in config file" ); +return 1 ; }
lib/mm/memlock.c +63 -46
187 lines not on this page · raw message