Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 588241 Details for
Bug 826357
CMSDASD is not cleared, no other dasd devices present
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to not bail if dasd attribute we're trying to set is already set.
0001-Don-t-set-an-already-set-attribute-826357.patch (text/plain), 1.16 KB, created by
Jesse Keating
on 2012-06-01 01:51:39 UTC
(
hide
)
Description:
Patch to not bail if dasd attribute we're trying to set is already set.
Filename:
MIME Type:
Creator:
Jesse Keating
Created:
2012-06-01 01:51:39 UTC
Size:
1.16 KB
patch
obsolete
>From c71a7130bf26754054255488b7e530154e2822d2 Mon Sep 17 00:00:00 2001 >From: Jesse Keating <jkeating@redhat.com> >Date: Thu, 31 May 2012 18:41:25 -0700 >Subject: [PATCH] Don't set an already set attribute (#826357) > >Depending on how the dasd_mod module was loaded, our device could have >already been marked as online or offline. We need to make the sysecho >sensitive to this and not fail if the attribute we're trying to set has >already been set. >--- > modules.d/80cms/cmssetup.sh | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh >index 995bfa7..41c853c 100755 >--- a/modules.d/80cms/cmssetup.sh >+++ b/modules.d/80cms/cmssetup.sh >@@ -5,7 +5,7 @@ > type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh > > function sysecho () { >- file=$1 >+ file="$1" > shift > local i=1 > while [ $i -le 10 ] ; do >@@ -16,7 +16,11 @@ function sysecho () { > break > fi > done >- [ -f "$file" ] && echo $* > $file >+ local status >+ read status < "$file" >+ if [[ ! $status == $* ]]; then >+ [ -f "$file" ] && echo $* > "$file" >+ fi > } > > function dasd_settle() { >-- >1.7.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 826357
: 588241