From: Martin Wilck Subject: Re: [PATCH] multipath: add print_foreign option Date: Wed, 14 Aug 2019 21:27:49 +0000 Message-ID: References: <1565803320-6996-1-git-send-email-bmarzins@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1565803320-6996-1-git-send-email-bmarzins@redhat.com> Content-Language: en-US Content-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: "bmarzins@redhat.com" , "christophe.varoqui@opensvc.com" Cc: "dm-devel@redhat.com" List-Id: dm-devel.ids On Wed, 2019-08-14 at 12:22 -0500, Benjamin Marzinski wrote: > This adds a print_foreign multipath.conf defaults option, that allows > users to disable printing foreign devices and paths. It defaults to > "yes". > > Signed-off-by: Benjamin Marzinski > --- > libmultipath/config.c | 1 + > libmultipath/config.h | 1 + > libmultipath/defaults.h | 1 + > libmultipath/dict.c | 4 ++++ > multipath/main.c | 4 ++-- > multipath/multipath.conf.5 | 12 ++++++++++++ > multipathd/cli_handlers.c | 40 ++++++++++++++++++++++++++++++---- > ---- > 7 files changed, 53 insertions(+), 10 deletions(-) > The general idea is good, and has been requested from SUSE, too. But, as "foreign" is designed to be generic and different foreign libraries might be possible in the future, I'd like to this a bit differently: enable_foreign = "$REGEXP" Where REGEXP would be used to match the foreign library names. The default value of REGEXP would be ".*" or "nvme". Users who want to disable printing foreign maps would set it e.g. to "^$", or "NONE". I'll send a patch soon. Regards, Martin