Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2015 11:10:34 +0800
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        freebsd-questions@freebsd.org
Subject:   mdconfig creating file based memory disk
Message-ID:  <20150910111034.20b97c41@X220.alogt.com>

next in thread | raw e-mail | index | archive | help
Hi,

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

Example:

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?

Erich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150910111034.20b97c41>