s4:scripting/python: always treat the highwatermark as opaque (bug #9508)
[sfrench/samba-autobuild/.git] / source4 / scripting / devel / tmpfs.sh
1 #!/bin/bash
2
3 # This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
4 # time waiting on the disk!
5
6 sudo echo "About to (re)mount bin and st as tmpfs"
7 rm -rf bin st 
8 sudo umount bin > /dev/null 2>&1 
9 sudo umount st  > /dev/null 2>&1 
10 mkdir -p bin st || exit 1
11 sudo mount -t tmpfs /dev/null bin || exit 1
12 sudo chown $USER bin/. || exit 1
13 echo "tmpfs setup for bin/"
14 sudo mount -t tmpfs /dev/null st || exit 1
15 sudo chown $USER st/. || exit 1
16 echo "tmpfs setup for st/"