diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`
where XXXXX
is the size of the RAM disk in terms of memory blocks.
Notes:
#!/bin/bash | |
# | |
# Yury V. Zaytsev <yury@shurup.com> (C) 2011 | |
# | |
# This work is herewith placed in public domain. | |
# | |
# Use this script to cleanly restart the default libvirt network after its | |
# definition have been changed (e.g. added new static MAC+IP mappings) in order | |
# for the changes to take effect. Restarting the network alone, however, causes | |
# the guests to lose connectivity with the host until their network interfaces |
This is taken directly from Figure 5.2 in http://nixos.org/~eelco/pubs/phd-thesis.pdf. It is presented here to be more directly linkable.
serialise(fso) = str("nix-archive-1") + serialise1(fso)
serialise1(fso) = str("(") + seralise2(fso) + str(")")
serialise2(type=Regular, exec, contents) =
str("type") + str("regular")
+ (