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 178881 Details for
Bug 262701
automount taking up lots of CPU time
[?]
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.
auto.net
auto.net (text/plain), 1.21 KB, created by
Adam Huffman
on 2007-08-29 12:18:33 UTC
(
hide
)
Description:
auto.net
Filename:
MIME Type:
Creator:
Adam Huffman
Created:
2007-08-29 12:18:33 UTC
Size:
1.21 KB
patch
obsolete
>#!/bin/bash > ># This file must be executable to work! chmod 755! > ># Look at what a host is exporting to determine what we can mount. ># This is very simple, but it appears to work surprisingly well > >key="$1" > ># add "nosymlink" here if you want to suppress symlinking local filesystems ># add "nonstrict" to make it OK for some filesystems to not mount >opts="-fstype=nfs,hard,intr,nodev,nosuid" > ># Showmount comes in a number of names and varieties. "showmount" is ># typically an older version which accepts the '--no-headers' flag ># but ignores it. "kshowmount" is the newer version installed with knfsd, ># which both accepts and acts on the '--no-headers' flag. >#SHOWMOUNT="kshowmount --no-headers -e $key" >#SHOWMOUNT="showmount -e $key | tail -n +2" > >for P in /bin /sbin /usr/bin /usr/sbin >do > for M in showmount kshowmount > do > if [ -x $P/$M ] > then > SMNT=$P/$M > break > fi > done >done > >[ -x $SMNT ] || exit 1 > ># Newer distributions get this right >SHOWMOUNT="$SMNT --no-headers -e $key" > >$SHOWMOUNT | LC_ALL=C sort -k 1 | \ > awk -v key="$key" -v opts="$opts" -- ' > BEGIN { ORS=""; first=1 } > { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 } > END { if (!first) print "\n"; else exit 1 } > ' | sed 's/#/\\#/g'
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 Raw
Actions:
View
Attachments on
bug 262701
:
178861
| 178881 |
178901
|
178921
|
178981