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 301885 Details for
Bug 441577
symlinks in cluster-managed mount points cause erroneous failures
[?]
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.
Updated test; tests NFS too (make sure you have NFS turned on!)
symlink-test (text/plain), 2.51 KB, created by
Lon Hohberger
on 2008-04-09 19:35:20 UTC
(
hide
)
Description:
Updated test; tests NFS too (make sure you have NFS turned on!)
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2008-04-09 19:35:20 UTC
Size:
2.51 KB
patch
obsolete
>#!/bin/sh > >export errors=0 > ># ># Globals ># >TESTFS="/tmp/rgmanager/sim-blockdev.$$" >TESTCONF="/tmp/rgmanager/test.conf.$$" > >HOSTNAME=`hostname` > >create_filesystem() >{ > declare tmp > > umount $TESTFS &> /dev/null > mkdir -p /tmp/rgmanager > dd if=/dev/zero of=$TESTFS bs=1M count=16 || return 1 > mke2fs -F -j $TESTFS || return 1 > losetup -f $TESTFS || return 1 > > tmp=$(losetup -a | grep $TESTFS) > TESTDEV=${tmp/: */} >} > > >setup_test1() >{ > export TESTMP="/tmp/rgmanager/link" > mkdir -p /tmp/rgmanager/dir3/dir2/dir1 > ln -s /tmp/rgmanager/dir3/dir2/dir1 $TESTMP >} > > >setup_test2() >{ > export TESTMP="/tmp/rgmanager/link1/real/link2/real/link3" > mkdir -p /tmp/rgmanager/1/2/3/4/5/6/7 > ln -s /tmp/rgmanager/1/2/3 /tmp/rgmanager/link1 > mkdir -p /tmp/rgmanager/1/2/3/real > ln -s /tmp/rgmanager/1/2/3/4 /tmp/rgmanager/1/2/3/real/link2 > mkdir -p /tmp/rgmanager/1/2/3/4/real > ln -s /tmp/rgmanager/1/2/3/4/5/6/7 /tmp/rgmanager/1/2/3/4/real/link3 >} > >setup_local_config() >{ >cat > $TESTCONF <<EOT ><?xml version="1.0"?> ><cluster alias="lolcats" config_version="1" name="lolcats"> > <rm> > <service name="symlink-test"> > <fs name="mountpoint-test" device="$TESTDEV" mountpoint="$TESTMP" options="loop"/> > > </service> > </rm> ></cluster> >EOT >} > > >setup_nfs() >{ > service nfs start &> /dev/null > mkdir -p /tmp/rgmanager/nfs > touch /tmp/rgmanager/nfs/$$ > exportfs -o "ro,no_root_squash" $HOSTNAME:/tmp/rgmanager/nfs >} > > >setup_nfs_config() >{ >cat > $TESTCONF <<EOT ><?xml version="1.0"?> ><cluster alias="lolcats" config_version="1" name="lolcats"> > <rm> > <service name="symlink-test"> > <netfs name="mountpoint-test" host="$HOSTNAME" mountpoint="$TESTMP" options="ro" export="/tmp/rgmanager/nfs"/> > > </service> > </rm> ></cluster> >EOT >} > > >run_test() >{ > rg_test test $TESTCONF start service symlink-test || ((errors++)) > echo "--------------------------------" > echo "cluster.conf: $TESTMP" > echo "mount: $(cat /proc/mounts | grep rgmanager | awk '{print $2}')" > echo "--------------------------------" > rg_test test $TESTCONF status service symlink-test || ((errors++)) > rg_test test $TESTCONF stop service symlink-test || ((errors++)) >} > > >cleanup() >{ > umount $HOSTNAME:/tmp/rgmanager/nfs &> /dev/null > exportfs -u $HOSTNAME:/tmp/rgmanager/nfs &> /dev/null > umount $TESTDEV &> /dev/null > losetup -d $TESTDEV &> /dev/null > rm -f $TESTFS > rm -rf /tmp/rgmanager >} > > >create_filesystem >setup_nfs > >setup_test1 >setup_local_config >run_test >setup_nfs_config >run_test > >setup_test2 >setup_local_config >run_test >setup_nfs_config >run_test > > >if [ $errors -ne 0 ]; then > echo $0 FAILED >else > cleanup >fi > >exit $errors
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 441577
:
301702
|
301703
|
301885
|
301887