aba856f28c
Modify 0015-RH-fix-output-buffer.patch * Fix memory leak Add 0048-RH-print-defaults.patch Add 0049-RH-remove-ID_FS_TYPE.patch * remove ID_FS_TYPE udev enviroment variable for multipath devices Add 0051-UP-fix-cli-resize.patch * check before dereferencing variables Add 0052-RH-fix-bad-derefs.patch * setup multipath free the multipath device when it fails, so don't keep using it. Add 0053-UP-fix-failback.patch * setting failback in the devices section was broken Add 0054-UP-keep-udev-ref.patch * multipathd needs to keep the same udev object across reconfigures Add 0055-UP-handle-quiesced-paths.patch * quiesced paths should be treated as down Add 0056-UP-alua-prio-fix.patch * Don't count the preferred bit for paths that are active/optimized Add 0057-UP-fix-tmo.patch * Cleanup how multipath sets dev_loss_tmo and fast_io_fail_tmo. Also make multipath get changing values directly from sysfs, instead of from udev, which caches them. Add 0058-UP-fix-failback.patch * make failback print the default value when you show configs. Add 0059-UP-flush-failure-queueing.patch * If you can't flush a multipath device, restore the queue_if_no_paths value Add 0060-UP-uevent-loop-udev.patch * make ueventloop grab it's own udev reference, since it is cancelled asychnrously.
24 lines
639 B
Diff
24 lines
639 B
Diff
diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c
|
|
index 7b1cb62..4b860bb 100644
|
|
--- a/multipathd/cli_handlers.c
|
|
+++ b/multipathd/cli_handlers.c
|
|
@@ -603,7 +603,18 @@ cli_resize(void *v, char **reply, int *len, void *data)
|
|
}
|
|
|
|
pgp = VECTOR_SLOT(mpp->pg, 0);
|
|
+
|
|
+ if (!pgp){
|
|
+ condlog(0, "%s: couldn't get path group. cannot resize",
|
|
+ mapname);
|
|
+ return 1;
|
|
+ }
|
|
pp = VECTOR_SLOT(pgp->paths, 0);
|
|
+
|
|
+ if (!pp){
|
|
+ condlog(0, "%s: couldn't get path. cannot resize", mapname);
|
|
+ return 1;
|
|
+ }
|
|
if (!pp->udev || sysfs_get_size(pp, &size)) {
|
|
condlog(0, "%s: couldn't get size for sysfs. cannot resize",
|
|
mapname);
|