mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
s4-devel: a useful script to setup bin/ and st/ as tmpfs filesystems
this makes building and testing s4 as a developer much faster, if you have enough memory!
This commit is contained in:
13
source4/scripting/devel/tmpfs.sh
Executable file
13
source4/scripting/devel/tmpfs.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
|
||||
# time waiting on the disk!
|
||||
|
||||
rm -rf bin st
|
||||
mkdir -p bin st || exit 1
|
||||
sudo mount -t tmpfs /dev/null bin || exit 1
|
||||
sudo chown $USER bin || exit 1
|
||||
echo "tmpfs setup for bin/"
|
||||
sudo mount -t tmpfs /dev/null st || exit 1
|
||||
sudo chown $USER st || exit 1
|
||||
echo "tmpfs setup for st/"
|
Reference in New Issue
Block a user