Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
mdadm.15572
1001-Detail-accept-option-brief-with-export.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1001-Detail-accept-option-brief-with-export.patch of Package mdadm.15572
From d8f5c69ef626a85295763719ca97c3ee06b0a8dd Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Thu, 28 Jun 2018 09:52:21 +0200 Subject: [PATCH] Detail: accept option '--brief' with '--export' References: bsc#1095141, bsc#1100864, bsc#1112272 When called from udev with '--export' mdadm will export details about each attached device in addition to the MD Array. As these values are being placed in the environment of the udev process and udev later on uses these environment values to format the uevent message we end up overflowing the uevent buffer for larger setups. This patch allows the option '--export' to be combined with '--brief', which will then avoid displaying information for the attached devices and avoid this issue. Signed-off-by: Hannes Reinecke <hare@suse.com> --- Detail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: mdadm-4.0/Detail.c =================================================================== --- mdadm-4.0.orig/Detail.c +++ mdadm-4.0/Detail.c @@ -278,7 +278,7 @@ int Detail(char *dev, struct context *c) putchar('\n'); } } - if (!c->no_devices && sra) { + if (!c->no_devices && !c->brief && sra) { struct mdinfo *mdi; for (mdi = sra->devs; mdi; mdi = mdi->next) { char *path;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor