mdconfig creating file based memory disk

Erich Dollansky erichsfreebsdlist at
Thu Sep 10 03:10:48 UTC 2015


I just came across a simple question. What will happen when I create
two memory disks using the same file?


mdconfig -f /usr/home/swap/swapfile -u 0
mdconfig -f /usr/home/swap/swapfile -u 1

and then I do a

swapon /dev/md0
swapon /dev/md1

It gives me double the size of 'swapfile' as swap space. It is obvious
to me that this must fail.

Shouldn't there be a note in the documentation?


More information about the freebsd-questions mailing list