Subject: Re: /tmp in swap
To: None <port-sparc@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sparc
Date: 12/27/2000 21:17:14
In <20001226202717.A629@antioche.eu.org>
bouyer@antioche.lip6.fr wrote:

> > And what if you leave out '-s=20000'?  Depending on OS version
> > it seems that half memory size - or half total swap - is assigned?
> 
> Donn't know, isn't this mentioned in the mount_mfs man page ?

mount_mfs(8) says:

> If the keyword ``swap'' is used instead of a special file
> name, default configuration parameters will be used.  (This option is
> useful when trying to use mount_mfs on a machine without any disks).

"Default configuration parameters" are not mentioned in it,
but src/sbin/newfs.c says:

---
	if (mfs && !strcmp(special, "swap")) {
		/*
		 * it's an MFS, mounted on "swap."  fake up a label.
		 * XXX XXX XXX
		 */
 :
		mfsfakelabel.d_partitions[0].p_size = 16384;
 :
		pp = &mfsfakelabel.d_partitions[0];

		goto havelabel;
 :
havelabel:
	if (fssize == 0)
		fssize = pp->p_size;
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp