scripts: CTDB hooks should add _netdev
for network mounts
Change-Id: I86ad5e9ed291866a8d478768fb447e269f51c39e BUG: 1075182 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7221 Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
ecc475d0a5
commit
3076f75e57
@ -55,7 +55,7 @@ function add_glusterfs_ctdb_options () {
|
||||
function add_fstab_entry () {
|
||||
volname=$1
|
||||
mntpt=$2
|
||||
mntent="`hostname`:/$volname $mntpt glusterfs defaults,transport=tcp 0 0"
|
||||
mntent="`hostname`:/$volname $mntpt glusterfs _netdev,defaults,transport=tcp 0 0"
|
||||
exists=`grep "^$mntent" /etc/fstab`
|
||||
if [ "$exists" == "" ]
|
||||
then
|
||||
|
@ -60,7 +60,7 @@ function remove_ctdb_options () {
|
||||
function remove_fstab_entry () {
|
||||
volname=$1
|
||||
mntpt=$2
|
||||
mntent="`hostname`:/$volname $mntpt glusterfs defaults,transport=tcp 0 0"
|
||||
mntent="`hostname`:/$volname $mntpt glusterfs _netdev,defaults,transport=tcp 0 0"
|
||||
esc_mntent=$(echo -e "$mntent" | sed 's/\//\\\//g')
|
||||
exists=`grep "^$mntent" /etc/fstab`
|
||||
if [ "$exists" != " " ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user