multpath patch sync
Benjamin Marzinski
maintainercover multpath patch sync
This series is a resend of my previous "handler fixes" patch, along with some bug fixes, a new default configuration, and a new attempt to make multipath able to skip kpartx handling on devices.
Benjamin Marzinski (7):
multipathd: handler fixes
libmultipath: remove calls to dm_udev_complete
libmultipath: add skip_kpartx option
kpartx.rules: respect skip_kpartx flag
multipath: validate devmap names
libmultipath: add Huawei Storage default config
kpartx: fix dos partition rollover error
kpartx/devmapper.c | 20 +++------------ kpartx/dos.c | 2 +- kpartx/kpartx.rules | 2 ++ libmultipath/alias.c | 8 ++++++ libmultipath/alias.h | 1 + libmultipath/config.c | 2 ++ libmultipath/config.h | 3 +++ libmultipath/configure.c | 5 ++-- libmultipath/defaults.h | 1 + libmultipath/devmapper.c | 62 +++++++++++++++++++++++++--------------------- libmultipath/devmapper.h | 8 +++++- libmultipath/dict.c | 13 ++++++++++ libmultipath/hwtable.c | 9 +++++++ libmultipath/propsel.c | 18 ++++++++++++++ libmultipath/propsel.h | 1 + libmultipath/structs.h | 7 ++++++ multipath/main.c | 7 +++++- multipath/multipath.conf.5 | 12 +++++++++ multipathd/cli.c | 2 +- multipathd/cli_handlers.c | 4 ++- multipathd/main.c | 4 +-- 21 files changed, 138 insertions(+), 53 deletions(-)
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 1/7 multipathd: handler fixes
We now have unlocked handlers, but these can't be used to call functions that will access the pathvec, mpvec, or conf, since these are what the vecs lock protects. cli_list_config and cli_list_blacklist both need to access conf, so they can't be unlocked handlers.
Also, if parse_cmd fails to lock the vecs->lock when it calls pthread_mutex_timedlock, we can't call unlock() on it, because unlocking a mutex you haven't locked causes undefined behviour. So we need to only execute the handler if didn't timeout trying to acquire the lock.
--- multipathd/cli.c | 2 +- multipathd/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
multipathd/cli.c +1 -1
@@ -496,7 +496,7 @@ parse_cmd (char * cmd, char ** reply, int * len, void * data, int timeout )pthread_testcancel (); r = h->fn (cmdvec, reply, len, data); } -lock_cleanup_pop (vecs->lock); +pthread_cleanup_pop (!r); }else r = h->fn (cmdvec, reply, len, data);free_keys (cmdvec);
multipathd/main.c +2 -2
@@ -1132,8 +1132,8 @@ uxlsnrloop (void * ap)set_handler_callback (LIST +MAP +TOPOLOGY , cli_list_map_topology);set_handler_callback (LIST +MAP +FMT , cli_list_map_fmt);set_handler_callback (LIST +MAP +RAW +FMT , cli_list_map_fmt); -set_unlocked_handler_callback (LIST +CONFIG , cli_list_config); -set_unlocked_handler_callback (LIST +BLACKLIST , cli_list_blacklist); +set_handler_callback (LIST +CONFIG , cli_list_config); +set_handler_callback (LIST +BLACKLIST , cli_list_blacklist);set_handler_callback (LIST +DEVICES , cli_list_devices);set_handler_callback (LIST +WILDCARDS , cli_list_wildcards);set_handler_callback (ADD +PATH , cli_add_path);
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 2/7 libmultipath: remove calls to dm_udev_complete
In reply to Benjamin MarzinskiThere were two places where the code was calling dm_udev_complete, when dm_task_set_cookie() failed and when a subsequent call dm_task_run() failed. It is correct in neither of these cases. If dm_task_set_cookie() fails, device mapper will zero out the cookie before returning, so there is nothing to complete. If it succeeds and there is a cookie, something has to wait on it, or it will hang around in the system forever. dm_udev_complete() will not wait on the cookie or clean it up. Its job is to signal to the waiters that they are done waiting. This is called for us when dm_task_run() fails, so calling dm_udev_wait() then will not block but immediately clean up the cookie.
This patch simply removes all of the dm_udev_complete() calls.
--- kpartx/devmapper.c | 20 ++++---------------- libmultipath/devmapper.c | 17 +++-------------- 2 files changed, 7 insertions(+), 30 deletions(-)
kpartx/devmapper.c +4 -16
@@ -77,19 +77,13 @@ dm_simplecmd (int task, const char *name, int no_flush, uint16_t udev_flags) {#ifdef LIBDM_API_COOKIE if (!udev_sync) udev_flags |=DM_UDEV_DISABLE_LIBRARY_FALLBACK ; -if (udev_wait_flag && !dm_task_set_cookie (dmt, &cookie, udev_flags)) { -dm_udev_complete (cookie); +if (udev_wait_flag && !dm_task_set_cookie (dmt, &cookie, udev_flags)) goto out; - }#endif r =dm_task_run (dmt);#ifdef LIBDM_API_COOKIE -if (udev_wait_flag) { -if (!r) -dm_udev_complete (cookie); -else +if (udev_wait_flag)dm_udev_wait (cookie); - }#endif out:dm_task_destroy (dmt);
@@ -145,19 +139,13 @@ dm_addmap (int task, const char *name, const char *target,if (!udev_sync) udev_flags =DM_UDEV_DISABLE_LIBRARY_FALLBACK ;if (task ==DM_DEVICE_CREATE && - !dm_task_set_cookie (dmt, &cookie, udev_flags)) { -dm_udev_complete (cookie); + !dm_task_set_cookie (dmt, &cookie, udev_flags)) goto addout; - }#endif r =dm_task_run (dmt);#ifdef LIBDM_API_COOKIE -if (task ==DM_DEVICE_CREATE ) { -if (!r) -dm_udev_complete (cookie); -else +if (task ==DM_DEVICE_CREATE )dm_udev_wait (cookie); - }#endif addout:dm_task_destroy (dmt);
libmultipath/devmapper.c +3 -14
@@ -237,12 +237,8 @@ dm_simplecmd (int task, const char *name, int no_flush, int need_sync, uint16_t r =dm_task_run (dmt); -if (udev_wait_flag) { -if (!r) -dm_udev_complete (cookie); -else +if (udev_wait_flag)dm_udev_wait (cookie); - } out:dm_task_destroy (dmt);return r;
@@ -325,12 +321,8 @@ dm_addmap (int task, const char *target, struct multipath *mpp, r =dm_task_run (dmt); -if (task ==DM_DEVICE_CREATE ) { -if (!r) -dm_udev_complete (cookie); -else +if (task ==DM_DEVICE_CREATE )dm_udev_wait (cookie); - } freeout:if (prefixed_uuid)FREE (prefixed_uuid);
@@ -1431,10 +1423,7 @@ dm_rename (const char * old, char * new) goto out; r =dm_task_run (dmt); -if (!r) -dm_udev_complete (cookie); -else -dm_udev_wait (cookie); +dm_udev_wait (cookie); out:dm_task_destroy (dmt);
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 3/7 libmultipath: add skip_kpartx option
In reply to Benjamin MarzinskiThis option gives multipath the ability to stop kpartx from running. The previous idea, the "no_partitions" feature, was not accepted in the upstream kernel. This method uses one of the dm cookie subsystem flags DM_SUBSYSTEM_UDEV_FLAG1, which can be checked by udev to skip running kpartx when processing the event. This patch does most of the work necessary to make this work. It doesn't change kpartx.rules, however.
Also, if dm_suspend_and_flush_map fails, multipath doesn't know how the device is configured. so, it simply checks if the device has any partitions before attempting the remove, and if not, sets the DM_SUBSYSTEM_UDEV_FLAG1 on the resume after failure, so that no partitions will be generated.
--- libmultipath/config.c | 2 ++ libmultipath/config.h | 3 +++ libmultipath/configure.c | 5 +++-- libmultipath/defaults.h | 1 + libmultipath/devmapper.c | 45 +++++++++++++++++++++++++++++++-------------- libmultipath/devmapper.h | 8 +++++++- libmultipath/dict.c | 13 +++++++++++++ libmultipath/propsel.c | 18 ++++++++++++++++++ libmultipath/propsel.h | 1 + libmultipath/structs.h | 7 +++++++ multipath/multipath.conf.5 | 12 ++++++++++++ multipathd/cli_handlers.c | 4 +++- 12 files changed, 101 insertions(+), 18 deletions(-)
libmultipath/config.c +2 -0
@@ -347,6 +347,7 @@ merge_hwe (struct hwentry * dst, struct hwentry * src)merge_num (deferred_remove);merge_num (delay_watch_checks);merge_num (delay_wait_checks); +merge_num (skip_kpartx);/* * Make sure features is consistent with
@@ -622,6 +623,7 @@ load_config (char * file, struct udev *udev) conf->retrigger_tries =DEFAULT_RETRIGGER_TRIES ; conf->retrigger_delay =DEFAULT_RETRIGGER_DELAY ; conf->uev_wait_timeout =DEFAULT_UEV_WAIT_TIMEOUT ; + conf->skip_kpartx =DEFAULT_SKIP_KPARTX ;/* * preload default hwtable
libmultipath/config.h +3 -0
@@ -63,6 +63,7 @@ struct hwentry {int deferred_remove;int delay_watch_checks;int delay_wait_checks; +int skip_kpartx;char * bl_product; };
@@ -89,6 +90,7 @@ struct mpentry {int deferred_remove;int delay_watch_checks;int delay_wait_checks; +int skip_kpartx;uid_t uid;gid_t gid;mode_t mode;
@@ -141,6 +143,7 @@ struct config {int ignore_new_devs;int delayed_reconfig;int uev_wait_timeout; +int skip_kpartx;unsigned int version[3 ];char * dev;
libmultipath/configure.c +3 -2
@@ -293,6 +293,7 @@ setup_map (struct multipath * mpp, char * params, int params_size)select_deferred_remove (mpp);select_delay_watch_checks (mpp);select_delay_wait_checks (mpp); +select_skip_kpartx (mpp);sysfs_set_scsi_tmo (mpp);/*
@@ -633,11 +634,11 @@ domap (struct multipath * mpp, char * params)break ;case ACT_RENAME : - r =dm_rename (mpp->alias_old, mpp->alias); + r =dm_rename (mpp->alias_old, mpp->alias, mpp->skip_kpartx);break ;case ACT_FORCERENAME : - r =dm_rename (mpp->alias_old, mpp->alias); + r =dm_rename (mpp->alias_old, mpp->alias, mpp->skip_kpartx);if (r) r =dm_addmap_reload (mpp, params,0 );break ;
libmultipath/defaults.h +1 -0
@@ -24,6 +24,7 @@#define DEFAULT_RETRIGGER_DELAY 10#define DEFAULT_RETRIGGER_TRIES 3#define DEFAULT_UEV_WAIT_TIMEOUT 30 +#define DEFAULT_SKIP_KPARTX SKIP_KPARTX_OFF#define DEFAULT_CHECKINT 5#define MAX_CHECKINT (a) (a << 2)
libmultipath/devmapper.c +31 -14
133 lines not on this page · raw message
libmultipath/devmapper.h +7 -1
@@ -12,6 +12,12 @@#define MPATH_UDEV_RELOAD_FLAG 0#endif +#ifdef DM_SUBSYSTEM_UDEV_FLAG1 +#define MPATH_UDEV_NO_KPARTX_FLAG DM_SUBSYSTEM_UDEV_FLAG1 +#else +#define MPATH_UDEV_NO_KPARTX_FLAG 0 +#endif +void dm_init (void );int dm_prereq (void );int dm_drv_version (unsigned int * version,char * str);
@@ -46,7 +52,7 @@ int dm_remove_partmaps (const char * mapname, int need_sync, int deferred_remove);int dm_get_uuid (char *name,char *uuid);int dm_get_info (char * mapname,struct dm_info ** dmi); -int dm_rename (const char * old,char * new); +int dm_rename (const char * old,char * new,int skip_kpartx);int dm_reassign (const char * mapname);int dm_reassign_table (const char *name,char *old,char *new);int dm_setgeometry (struct multipath *mpp);
libmultipath/dict.c +13 -0
@@ -402,6 +402,15 @@ declare_def_snprint(uev_wait_timeout, print_int) declare_def_handler(strict_timing, set_yes_no) declare_def_snprint(strict_timing, print_yes_no) +declare_def_handler(skip_kpartx, set_yes_no_undef) +declare_def_snprint_defint(skip_kpartx, print_yes_no_undef, YNU_NO) +declare_ovr_handler(skip_kpartx, set_yes_no_undef) +declare_ovr_snprint(skip_kpartx, print_yes_no_undef) +declare_hw_handler(skip_kpartx, set_yes_no_undef) +declare_hw_snprint(skip_kpartx, print_yes_no_undef) +declare_mp_handler(skip_kpartx, set_yes_no_undef) +declare_mp_snprint(skip_kpartx, print_yes_no_undef) +static int def_config_dir_handler (vector strvec) {
@@ -1379,6 +1388,7 @@ init_keywords(void)install_keyword ("retrigger_tries" , &def_retrigger_tries_handler, &snprint_def_retrigger_tries);install_keyword ("retrigger_delay" , &def_retrigger_delay_handler, &snprint_def_retrigger_delay);install_keyword ("missing_uev_wait_timeout" , &def_uev_wait_timeout_handler, &snprint_def_uev_wait_timeout); +install_keyword ("skip_kpartx" , &def_skip_kpartx_handler, &snprint_def_skip_kpartx);__deprecated install_keyword ("default_selector" , &def_selector_handler,NULL );__deprecated install_keyword ("default_path_grouping_policy" , &def_pgpolicy_handler,NULL );__deprecated install_keyword ("default_uid_attribute" , &def_uid_attribute_handler,NULL );
@@ -1449,6 +1459,7 @@ init_keywords(void)install_keyword ("deferred_remove" , &hw_deferred_remove_handler, &snprint_hw_deferred_remove);install_keyword ("delay_watch_checks" , &hw_delay_watch_checks_handler, &snprint_hw_delay_watch_checks);install_keyword ("delay_wait_checks" , &hw_delay_wait_checks_handler, &snprint_hw_delay_wait_checks); +install_keyword ("skip_kpartx" , &hw_skip_kpartx_handler, &snprint_hw_skip_kpartx);install_sublevel_end ();install_keyword_root ("overrides" , &overrides_handler);
@@ -1476,6 +1487,7 @@ init_keywords(void)install_keyword ("deferred_remove" , &ovr_deferred_remove_handler, &snprint_ovr_deferred_remove);install_keyword ("delay_watch_checks" , &ovr_delay_watch_checks_handler, &snprint_ovr_delay_watch_checks);install_keyword ("delay_wait_checks" , &ovr_delay_wait_checks_handler, &snprint_ovr_delay_wait_checks); +install_keyword ("skip_kpartx" , &ovr_skip_kpartx_handler, &snprint_ovr_skip_kpartx);install_keyword_root ("multipaths" , &multipaths_handler);install_keyword_multi ("multipath" , &multipath_handler,NULL );
@@ -1502,5 +1514,6 @@ init_keywords(void)install_keyword ("deferred_remove" , &mp_deferred_remove_handler, &snprint_mp_deferred_remove);install_keyword ("delay_watch_checks" , &mp_delay_watch_checks_handler, &snprint_mp_delay_watch_checks);install_keyword ("delay_wait_checks" , &mp_delay_wait_checks_handler, &snprint_mp_delay_wait_checks); +install_keyword ("skip_kpartx" , &mp_skip_kpartx_handler, &snprint_mp_skip_kpartx);install_sublevel_end (); }
libmultipath/propsel.c +18 -0
@@ -658,4 +658,22 @@ out:print_delay_checks (buff,12 , &mp->delay_wait_checks);condlog (3 ,"%s: delay_wait_checks = %s %s" , mp->alias, buff, origin);return 0 ; + +} + +extern int +select_skip_kpartx (struct multipath * mp) +{ +char *origin; + +mp_set_mpe (skip_kpartx); +mp_set_ovr (skip_kpartx); +mp_set_hwe (skip_kpartx); +mp_set_conf (skip_kpartx); +mp_set_default (skip_kpartx,DEFAULT_SKIP_KPARTX ); +out: +condlog (3 ,"%s: skip_kpartx = %s %s" , mp->alias, + (mp->skip_kpartx ==SKIP_KPARTX_ON )?"yes" :"no" , + origin); +return 0 ; }
libmultipath/propsel.h +1 -0
@@ -22,3 +22,4 @@ int select_detect_prio(struct path * pp);int select_deferred_remove (struct multipath *mp);int select_delay_watch_checks (struct multipath * mp);int select_delay_wait_checks (struct multipath * mp); +int select_skip_kpartx (struct multipath * mp);
libmultipath/structs.h +7 -0
@@ -127,6 +127,12 @@ enum deferred_remove_states { DEFERRED_REMOVE_IN_PROGRESS, }; +enum skip_kpartx_states { +SKIP_KPARTX_UNDEF =YNU_UNDEF , +SKIP_KPARTX_OFF =YNU_NO , +SKIP_KPARTX_ON =YNU_YES , +}; +enum scsi_protocol {SCSI_PROTOCOL_FCP =0 ,/* Fibre Channel */ SCSI_PROTOCOL_SPI =1 ,/* parallel SCSI */
@@ -242,6 +248,7 @@ struct multipath {int deferred_remove;int delay_watch_checks;int delay_wait_checks; +int skip_kpartx;unsigned int dev_loss;uid_t uid;gid_t gid;
multipath/multipath.conf.5 +12 -0
@@ -528,6 +528,12 @@ automatically enabling device reloads. Usually multipathd will delay reloads on a device until it receives a change uevent from the initial table load. The default is .I 30 +.TP +.B skip_kpartx +If set to +.I yes +, kpartx will not automatically create partitions on the device. The default is +.I no . .SH "blacklist section" The
@@ -652,6 +658,8 @@ section: .B delay_watch_checks .TP .B delay_wait_checks +.TP +.B skip_kpartx .RE .PD .LP
@@ -748,6 +756,8 @@ section: .B delay_watch_checks .TP .B delay_wait_checks +.TP +.B skip_kpartx .RE .PD .LP
@@ -807,6 +817,8 @@ sections: .B delay_watch_checks .TP .B delay_wait_checks +.TP +.B skip_kpartx .RE .PD .LP
multipathd/cli_handlers.c +3 -1
@@ -955,19 +955,21 @@ cli_resume(void * v, char ** reply, int * len, void * data)char * param =get_keyparam (v,MAP );int r;struct multipath * mpp; +uint16_t udev_flags; param =convert_dev (param,0 ); mpp =find_mp_by_alias (vecs->mpvec, param);if (!mpp)return 1 ; + udev_flags = (mpp->skip_kpartx)?MPATH_UDEV_NO_KPARTX_FLAG :0 ;if (mpp->wait_for_udev) {condlog (2 ,"%s: device not fully created, failing resume" , mpp->alias);return 1 ; } - r =dm_simplecmd_noflush (DM_DEVICE_RESUME , param,0 ); + r =dm_simplecmd_noflush (DM_DEVICE_RESUME , param, udev_flags);condlog (2 ,"%s: resume (operator)" , param);
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 4/7 kpartx.rules: respect skip_kpartx flag
In reply to Benjamin MarzinskiCheck if DM_SUBSYSTEM_UDEV_FLAG1 is set, and if so, don't run kpartx. If the event was not generated by device-mapper, just use the existing value of DM_SUBSYSTEM_UDEV_FLAG1.
--- kpartx/kpartx.rules | 2 ++ 1 file changed, 2 insertions(+)
kpartx/kpartx.rules +2 -0
@@ -37,6 +37,8 @@ ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", \ # Create dm tables for partitions ENV{DM_ACTION}=="PATH_FAILED|PATH_REINSTATED", GOTO="kpartx_end" ENV{DM_NR_VALID_PATHS}=="0", GOTO="kpartx_end" +ENV{ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}!="1", IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG1" +ENV{DM_SUBSYSTEM_UDEV_FLAG1}=="1", GOTO="kpartx_end" ENV{DM_STATE}!="SUSPENDED", ENV{DM_UUID}=="mpath-*", \ RUN+="/sbin/kpartx -u -p -part /dev/$name"
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 5/7 multipath: validate devmap names
In reply to Benjamin MarzinskiAny device identifier given to multipath that isn't either a block device or a major:minor id is assumed to be a multipath alias. This can cause some confusing messages if the user accidentally enters something that is clearly a pathname, but isn't a block device. Since multipath device aliases are not allowed to have a "/" in them, multipath now checks the identifier for this before assuming that is is a device alias, and if there is a "/", it errors out with a helpful message.
--- libmultipath/alias.c | 8 ++++++++ libmultipath/alias.h | 1 + multipath/main.c | 7 ++++++- 3 files changed, 15 insertions(+), 1 deletion(-)
libmultipath/alias.c +8 -0
@@ -36,6 +36,14 @@* See the file COPYING included with this distribution for more details. */ +int +valid_alias (char *alias) +{ +if (strchr (alias,'/' ) !=NULL ) +return 0 ; +return 1 ; +} +static int format_devname (char *name,int id,int len,char *prefix)
libmultipath/alias.h +1 -0
@@ -7,6 +7,7 @@"# alias wwid\n" \"#\n" +int valid_alias(char *alias);char *get_user_friendly_alias (char *wwid,char *file,char *prefix,int bindings_readonly);int get_user_friendly_wwid (char *alias,char *buff,char *file);
multipath/main.c +6 -1
@@ -465,8 +465,9 @@ get_dev_type(char *dev) { }else if (sscanf (dev,"%d:%d" , &i, &i) ==2 )return DEV_DEVT ; -else +else if (valid_alias (dev))return DEV_DEVMAP ; +return DEV_NONE ; }int
@@ -596,6 +597,10 @@ main (int argc, char *argv[])strncpy (conf->dev, argv[optind],FILE_NAME_SIZE );if (conf->dev_type !=DEV_UEVENT ) conf->dev_type =get_dev_type (conf->dev); +if (conf->dev_type ==DEV_NONE ) { +condlog (0 ,"'%s' is not a valid argument\n" , conf->dev); + goto out; + } } conf->daemon =0 ;if (conf->dev_type ==DEV_UEVENT ) {
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 6/7 libmultipath: add Huawei Storage default config
In reply to Benjamin MarzinskiAdd a default device config for the Huawei XSG1 arrary. This config comes from Huawei.
--- libmultipath/hwtable.c | 9 +++++++++ 1 file changed, 9 insertions(+)
libmultipath/hwtable.c +9 -0
@@ -1166,6 +1166,15 @@ static struct hwentry default_hw[] = { .dev_loss = 60, .prio_args = NULL, }, + { + .vendor = "HUAWEI", + .product = "XSG1", + .features = DEFAULT_FEATURES, + .hwhandler = DEFAULT_HWHANDLER, + .pgpolicy = MULTIBUS, + .pgfailback = -FAILBACK_IMMEDIATE, + .checker_name = TUR, + },/* * EOL */
Signature · 1 line
1.8.3.1
Benjamin Marzinski
maintainerPATCH 7/7 kpartx: fix dos partition rollover error
In reply to Benjamin Marzinskidos partitions are limited to 2^32 sectors. However these do not have to be 512 byte sectors, which is what device-mapper tables use. kpartx stores the dos sectors in a 32 uint. This means that on a 4k sector size device with large enough partitions, when kpartx multiplies the dos sector count by the sector size multiplier, it can rollover before it gets stored in 64 bit slice sector count. This patch just changes the multiplier to a 64 bit uint to match the slice sector count, and avoid the rollover.
--- kpartx/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kpartx/dos.c +1 -1
@@ -79,7 +79,7 @@ read_dos_pt(int fd, struct slice all, struct slice *sp, int ns) {unsigned long offset = all.start;int i, n=4 ;unsigned char *bp; -int sector_size_mul =get_sector_size (fd)/512 ; +uint64_t sector_size_mul =get_sector_size (fd)/512 ; bp = (unsigned char *)getblock (fd, offset);if (bp ==NULL )
Signature · 1 line
1.8.3.1
The patchset is merged, except patch 3 and 4, pending review and comments.
Patch is rebased, being broken by the json config patch merged ealier. I verified this json config uses the locked handler.
Thanks.
Quoted 42 lines · Benjamin Marzinski
This series is a resend of my previous "handler fixes" patch, along with some
bug fixes, a new default configuration, and a new attempt to make multipath able to skip kpartx handling on devices.Benjamin Marzinski (7):
multipathd: handler fixes
libmultipath: remove calls todm_udev_complete
libmultipath: addskip_kpartxoption
kpartx.rules: respectskip_kpartxflag
multipath: validate devmap names
libmultipath: add Huawei Storage default config
kpartx: fix dos partition rollover errorkpartx/devmapper.c | 20 +++------------ kpartx/dos.c | 2 +- kpartx/kpartx.rules | 2 ++ libmultipath/alias.c | 8 ++++++ libmultipath/alias.h | 1 + libmultipath/config.c | 2 ++ libmultipath/config.h | 3 +++ libmultipath/configure.c | 5 ++-- libmultipath/defaults.h | 1 + libmultipath/devmapper.c | 62 +++++++++++++++++++++++++--------------------- libmultipath/devmapper.h | 8 +++++- libmultipath/dict.c | 13 ++++++++++ libmultipath/hwtable.c | 9 +++++++ libmultipath/propsel.c | 18 ++++++++++++++ libmultipath/propsel.h | 1 + libmultipath/structs.h | 7 ++++++ multipath/main.c | 7 +++++- multipath/multipath.conf.5 | 12 +++++++++ multipathd/cli.c | 2 +- multipathd/cli_handlers.c | 4 ++- multipathd/main.c | 4 +-- 21 files changed, 138 insertions(+), 53 deletions(-)--
1.8.3.1