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 300415 Details for
Bug 440645
service failover hangs at quotaoff in /usr/share/cluster/fs.sh
[?]
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 avoid running quotaoff for file systems with no quotas configured
fs.sh-no-quotaoff.patch (text/plain), 1.93 KB, created by
Bryn M. Reeves
on 2008-04-04 11:57:07 UTC
(
hide
)
Description:
Patch to avoid running quotaoff for file systems with no quotas configured
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2008-04-04 11:57:07 UTC
Size:
1.93 KB
patch
obsolete
>diff --git a/rgmanager/src/resources/fs.sh b/rgmanager/src/resources/fs.sh >index 7808709..8469299 100755 >--- a/rgmanager/src/resources/fs.sh >+++ b/rgmanager/src/resources/fs.sh >@@ -797,21 +797,14 @@ activeMonitor() { > > > # >-# Enable quotas on the mount point if the user requested them >+# Decide which quota options are enabled and return a string >+# which we can pass to quotaon > # >-enable_fs_quotas() >+quota_opts() > { >- declare -i need_check=0 >- declare -i rv > declare quotaopts="" >- declare mopt > declare opts=$1 >- declare mp=$2 >- >- if [ -z "`which quotaon`" ]; then >- ocf_log err "quotaon not found in $PATH" >- return $OCF_ERR_GENERIC >- fi >+ declare mopt > > for mopt in `echo $opts | sed -e s/,/\ /g`; do > case $mopt in >@@ -830,6 +823,33 @@ enable_fs_quotas() > esac > done > >+ echo $quotaopts >+ return 0 >+} >+ >+ >+ >+# >+# Enable quotas on the mount point if the user requested them >+# >+enable_fs_quotas() >+{ >+ declare -i need_check=0 >+ declare -i rv >+ declare quotaopts="" >+ declare mopt >+ declare opts=$1 >+ declare mp=$2 >+ >+ if [ -z "`which quotaon`" ]; then >+ ocf_log err "quotaon not found in $PATH" >+ return $OCF_ERR_GENERIC >+ fi >+ >+ quotaopts=$(quota_opts $opts) >+ >+ ocf_log info "quotaopts = $quotaopts" >+ > [ -z "$quotaopts" ] && return 0 > > # Ok, create quota files if they don't exist >@@ -1089,6 +1109,7 @@ stopFilesystem() { > typeset force_umount="" > typeset self_fence="" > typeset fstype="" >+ typeset quotaopts="" > > > # >@@ -1154,11 +1175,15 @@ stop: Could not match $OCF_RESKEY_device with a real device" > ;; > $YES) > sync; sync; sync >- ocf_log info "unmounting $mp" >+ quotaopts=$(quota_opts $OCF_RESKEY_options) >+ if [ -n "$quotaopts" ]; then >+ ocf_log debug "Turning off quotas for $mp" >+ quotaoff -$quotaopts $mp &> /dev/null >+ fi > > activeMonitor stop || return $OCF_ERR_GENERIC > >- quotaoff -gu $mp &> /dev/null >+ ocf_log info "unmounting $mp" > umount $mp > if [ $? -eq 0 ]; then > umount_failed=
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 440645
: 300415