Commit 1a27ac5c authored by Konstantin Baev's avatar Konstantin Baev

remove disableing LinuxExtensions (bug Eter#2563)

parent ad4ba0af
...@@ -108,7 +108,7 @@ umount_cifs() ...@@ -108,7 +108,7 @@ umount_cifs()
mount_cifs() mount_cifs()
{ {
echo -n "Mounting CIFS resources... " echo -n "Mounting CIFS resources... "
mount -t cifs -a || { failure ; return 1; } mount -t cifs -a -o noperm || { failure ; return 1; }
success success
} }
...@@ -132,7 +132,7 @@ load_module() ...@@ -132,7 +132,7 @@ load_module()
# $INSMOD $MODULEPATH && { echo ; echo -n " insmod $MODULEPATH" ; success ; return ; } # $INSMOD $MODULEPATH && { echo ; echo -n " insmod $MODULEPATH" ; success ; return ; }
# echo -n "Incorrect module. Your system: " ; uname -a ; dmesg | tail -n2 # echo -n "Incorrect module. Your system: " ; uname -a ; dmesg | tail -n2
#fi #fi
echo -n "$MODULENAME from Etersoft is not found," echo -n "$MODULENAME from Etersoft is not found, "
echo -n "you can try compile it with 'service etercifs build' command." echo -n "you can try compile it with 'service etercifs build' command."
failure failure
} }
...@@ -141,11 +141,11 @@ start() ...@@ -141,11 +141,11 @@ start()
{ {
load_module load_module
if is_moduled ; then if is_moduled ; then
test -r /proc/fs/cifs/Etersoft 2>/dev/null || { echo -n "Check CIFS for Etersoft extensions... " ; failure ; return ; } # test -r /proc/fs/cifs/Etersoft 2>/dev/null || { echo -n "Check CIFS for Etersoft extensions... " ; failure ; return ; }
echo -n "Enable Etersoft extensions for CIFS..." # echo -n "Enable Etersoft extensions for CIFS..."
echo 1 > /proc/fs/cifs/Etersoft && success || failure # echo 1 > /proc/fs/cifs/Etersoft && success || failure
echo -n "Disable Linux extensions for CIFS..." # echo -n "Disable Linux extensions for CIFS..."
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled && success || failure # echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled && success || failure
test -n "$WASCIFS" && mount_cifs || : test -n "$WASCIFS" && mount_cifs || :
else else
failure failure
...@@ -177,12 +177,12 @@ status() ...@@ -177,12 +177,12 @@ status()
fi fi
if is_moduled ; then if is_moduled ; then
#echo " kernel module $MODULENAME is loaded ($PRECOMP)" #echo " kernel module $MODULENAME is loaded ($PRECOMP)"
test -d /proc/fs/cifs/ 2>/dev/null || { echo -n "Can't locale /proc/fs/cifs... " ; failure ; } # test -d /proc/fs/cifs/ 2>/dev/null || { echo -n "Can't locale /proc/fs/cifs... " ; failure ; }
echo " kernel module $MODULENAME is loaded" echo " kernel module $MODULENAME is loaded"
echo -n "Etersoft extensions for CIFS enabled..." # echo -n "Etersoft extensions for CIFS enabled..."
test "`cat /proc/fs/cifs/Etersoft 2>/dev/null`" = "1" && success || failure # test "`cat /proc/fs/cifs/Etersoft 2>/dev/null`" = "1" && success || failure
echo -n "Unix extensions for CIFS disabled..." # echo -n "Unix extensions for CIFS disabled..."
test "`cat /proc/fs/cifs/LinuxExtensionsEnabled 2>/dev/null`" = "1" && failure || success # test "`cat /proc/fs/cifs/LinuxExtensionsEnabled 2>/dev/null`" = "1" && failure || success
else else
echo " kernel module $MODULENAME is not loaded" echo " kernel module $MODULENAME is not loaded"
fi fi
...@@ -221,7 +221,8 @@ case "$1" in ...@@ -221,7 +221,8 @@ case "$1" in
condrestart) condrestart)
# remove manual built module # remove manual built module
# rm -f $MANMODULEPATH # rm -f $MANMODULEPATH
if [ "`cat /proc/fs/cifs/Etersoft 2>/dev/null`" = "1" ] ; then # if [ "`cat /proc/fs/cifs/Etersoft 2>/dev/null`" = "1" ] ; then
if is_moduled ; then
stop stop
start start
else else
......
...@@ -55,6 +55,3 @@ exit_handler() ...@@ -55,6 +55,3 @@ exit_handler()
} }
#/lib/modules/$(shell uname -r)/build #/lib/modules/$(shell uname -r)/build
#fatal "Errror in func"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment