Editing
Msg10918.html
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
----- [<nowiki/>[[msg10917.html|Date Prev]]][<nowiki/>[[msg10919.html|Date Next]]][<nowiki/>[[msg10907.html|Thread Prev]]][<nowiki/>[[msg10921.html|Thread Next]]][<nowiki/>[[index.html#10918|Date Index]]][<nowiki/>[[threads.html#10918|Thread Index]]] <span id="vserver-updates-to-testfs.sh-script"></span> = [Vserver] Updates to testfs.sh script = ----- * '''From:''' micah * '''Date:''' Tue, 4 Oct 2005 20:49:34 +0200 (CEST) ----- <pre> Please find attached a diff against testfs.sh-0.09. This diff adds the -c option to disable color output and also adds the -q option to mkfs.jfs because without this mkfs.jfs asks if you want to continue causing the test to fail erroneously. micah </pre> <pre>--- testfs.sh-0.09 2005-09-19 04:27:43.000000000 -0400 +++ testfs.sh-0.10 2005-10-04 14:46:52.000000000 -0400 @@ -1,7 +1,5 @@ #!/bin/bash -eR='\e[31m';eG='\e[32m';eY='\e[33m';eB='\e[34m';eN='\e[0m' - function eecho () { C=$1; shift echo -e "$C$*$eN" @@ -360,7 +358,7 @@ nfsopt="vers=3,hard,intr,tcp,sync" -while getopts ":hlotvxD:F:M:N:O:" option; do +while getopts ":hlotvxcD:F:M:N:O:" option; do case $option in h) # help cat << EOF @@ -377,6 +375,7 @@ -M <mnt> mount point [$MNT] -N <src> nfs source [$NFS] -O <opt> nfs options [$nfsopt] + -c disable color output examples: @@ -402,6 +401,9 @@ t) # terse output terse=1 ;; + c) # disable color output + color="no" + ;; D) # device DEV="$OPTARG" ;; @@ -421,6 +423,10 @@ done shift $(($OPTIND - 1)) +if [ "$color" != "no" ]; then + eR='\e[31m';eG='\e[32m';eY='\e[33m';eB='\e[34m';eN='\e[0m' +fi + outdev="/dev/null" [ $verbose -gt 1 ] && outdev="/dev/stdout" errdev="/dev/null" @@ -454,7 +460,7 @@ echo "---" eecho $eY "testing $fs filesystem ..." case $fs in - ext2|ext3|xfs|jfs) + ext2|ext3|xfs) mkfs.$fs $DEV 1>$outdev 2>$errdev rc=$?; ececho $rc "[000]" [ $rc -gt 0 ] && echo "($fs format failed)" && continue @@ -466,6 +472,12 @@ [ $rc -gt 0 ] && echo "(reiser format failed)" && continue do_test reiser "attrs,$mntopt" ;; + jfs*) + mkfs.jfs -q $DEV 1>$outdev 2>$errdev + rc=$?; ececho $rc "[000]" + [ $rc -gt 0 ] && echo "($fs format failed)" && continue + do_test "$fs" "$mntopt" + ;; nfs) do_test nfs "$nfsopt,$mntopt" ;;</pre> '''Attachment: [[pgpR8jIsxhw2A.pgp|<code>signature.asc</code>]]'''<br /> ''Description:'' OpenPGP digital signature ----- * '''Follow-Ups''': ** '''[[msg10921.html|Re: [Vserver] Updates to testfs.sh script]]''' *** ''From:'' micah * Prev by Date: '''[[msg10917.html|Re: [Vserver] what am i doing wrong with vserver exec?]]''' * Next by Date: '''[[msg10919.html|[Vserver] fatal errors starting and stopping a guest]]''' * Previous by thread: '''[[msg10907.html|[Vserver] what am i doing wrong with vserver exec?]]''' * Next by thread: '''[[msg10921.html|Re: [Vserver] Updates to testfs.sh script]]''' * Index(es): ** [[index.html#10918|'''Date''']] ** [[threads.html#10918|'''Thread''']]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information