Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
mdadm.5365
0182-Grow-close-fd-earlier-to-avoid-cannot-get-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0182-Grow-close-fd-earlier-to-avoid-cannot-get-excl-acces.patch of Package mdadm.5365
From ad2f4646023474c59adb448a096d4b02ce33298f Mon Sep 17 00:00:00 2001 From: Pawel Baldysiak <pawel.baldysiak@intel.com> Date: Fri, 11 Mar 2016 13:49:07 +0100 Subject: [PATCH 246/359] Grow: close fd earlier to avoid "cannot get excl access" when stopping References: bsc#1081910 If this file descriptor is not closed here, it remains open during reshape process and stopping process will end up with "cannot get exclusive access to container". Once this file descriptor is no longer needed - it can be closed. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Coly Li <colyli@suse.de> --- Grow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grow.c b/Grow.c index cf2750a..d9db00b 100755 --- a/Grow.c +++ b/Grow.c @@ -2070,6 +2070,10 @@ size_change_error: * number of devices (On-Line Capacity Expansion) must be * performed at the level of the container */ + if (fd > 0) { + close(fd); + fd = -1; + } rv = reshape_container(container, devname, -1, st, &info, c->force, c->backup_file, c->verbose, 0, 0, 0); frozen = 0; -- 2.16.1
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