|
Ram disk seems to be working! Here's a patch to lswsctrl (no checks for ensuring we're on osx though)...
42a43,49
>
> ram_disk=`/usr/bin/hdid -nomount ram://2048`
> /sbin/newfs_hfs $ram_disk
> /bin/rm -rf /tmp/lshttpd
> /bin/mkdir /tmp/lshttpd
> /sbin/mount -t hfs $ram_disk /tmp/lshttpd
>
53a61,62
> /sbin/umount /tmp/lshttpd
> /usr/bin/hdiutil detach $ram_disk
63a73,76
> sleep 1
> ram_disk=`/bin/df | /usr/bin/grep /tmp/lshttpd | /usr/bin/cut -f1 -d" "`
> /sbin/umount /tmp/lshttpd
> /usr/bin/hdiutil detach $ram_disk
|