diff --git a/debian/smb.conf b/debian/smb.conf index ae45d3f757f1..c9092e294b26 100644 --- a/debian/smb.conf +++ b/debian/smb.conf @@ -32,6 +32,5 @@ kernel oplocks = no posix locking = no durable handles = yes - aio read size = 4096 - aio write size = 4096 - + aio read size = 1 + aio write size = 1 \ No newline at end of file diff --git a/debian/svt-samba-init b/debian/svt-samba-init index 9a3320436c74..8f11f9407754 100755 --- a/debian/svt-samba-init +++ b/debian/svt-samba-init @@ -11,6 +11,7 @@ # ask_retry "" # NULL/Empty command would cause just the prompt. Skip/Abort out of the prompt as needed. # +env APPSETUP="/var/tmp/build/bin/appsetup" ask_retry() { cmd="$1" @@ -285,20 +286,10 @@ echo "CMD $CMD" deploy_samba() { + . "$APPSETUP" get_samba_specific_defines - if [ `iptables -L | head -4 | grep -c "anywhere *$"` -lt 1 ] - then - echo IPTables is not open enough, injecting rule... - iptables -I INPUT -j ACCEPT - echo IPTables is updated to accept all incoming traffic - else - echo IPTables looks good - fi - - ${SRCPATH}/fw.stop - setup_domain_networking echo Starting to update Samba on the DVM and integrate with Windows domain... @@ -356,6 +347,9 @@ deploy_samba() net rpc rights grant '$GROUP_NAME\\Domain Admins' SeDiskOperatorPrivilege -U$ADMIN_USER%$ADMIN_PASSWD + # Delete the upstart override file for samba when running on HyperV + [ `grep -ic provider.hyperv $SVTCONF` -eq 1 ] && (rm /etc/init/svt-samba-server.override) + echo "SVT Samba One-time Initialization done." } @@ -431,18 +425,7 @@ prep_predeploy_and_exit() wget -N http://10.0.0.85/captures/SierraNevada/resetTia wget -N http://10.0.0.85/captures/SierraNevada/winexe chmod +x winexe - cat > fw.stop << EOT -#!/bin/sh -echo "Stopping firewall and allowing everyone..." -iptables -F -iptables -X -iptables -t mangle -F -iptables -t mangle -X -iptables -P INPUT ACCEPT -iptables -P FORWARD ACCEPT -iptables -P OUTPUT ACCEPT -EOT - cat > DEFS << EOT + cat > DEFS << EOT ### Fill these out to avoid fat fingering! Examples are provided as comments (#) below. ### This file is sourced into bash at the beginning of the install script. @@ -482,8 +465,6 @@ EXIT_ON_ERROR=1 EOT fi - chmod +x fw.stop - if [ ! -d ${SAMBAPDIR}/samba ]; then mv /var/lib/samba ${SAMBAPDIR}/ ln -s ${SAMBAPDIR}/samba /var/lib/