/etc/marry -d regfile | marrydev ...
swap(ADM) uses marry to allow a regular file to act as a block device for swapping.
It is also possible to create a filesystem within a married regular file using mkfs(ADM) on the associated block device file. You can then check its integrity with fsck(ADM), and mount and unmount it using mount(ADM) and umount(ADM).
The following options are recognized:
If regfile is a relative pathname, marry creates a block device file with the path /dev/marry/pwd/regfile where pwd is the current working directory.
marry gives the block device file and any intermediate directories the same permissions, owner, and group as the regular file and its intermediate directories. When using mknod to create another node, you should set its permissions appropriately as it provides another route to access the file.
A marriage may be deleted while the married device is in use; the marriage will remain in force until the device is closed.
If a regular file cannot be found, marry displays the inode number instead of its pathname.
If the block special device file cannot be found, marry
?????? instead of its pathname.
The status field shows how the device is currently open, and whether it is to be unmarried on close.
Text file busy
/swap to 76,1 /dev/marry/swap swap-opened unmarry-on-close /u/filesys to 76,2 /dev/marry/u/filesys block/mount-opened /usr/tmp/idlefile to 76,3 /dev/marry/usr/tmp/idlefile
badtrk(ADM), divvy(ADM), and fdisk(ADM) cannot be applied to a married device.
A regular file may be extended by writing to the married device; the final block is padded with null characters.
Only a regular file may be married; a directory cannot be married.
A file on a married mounted filesystem cannot be married.
A file cannot be married while its permissions include execution, setuid, setgid, sticky, or mandatory locking bits (see chmod(C)).
A married device cannot be opened for writing while the underlying file is being executed or is open for writing. A married file cannot be executed or opened for writing while the device is open.
A filesystem containing a married file cannot be unmounted while the associated device is open. If the device is not open, unmounting a filesystem containing married files automatically dissolves their marriages.
marry is a setuid program so that anyone can marry files. Only the owner (or root) can marry a given file; marry(HW) describes how to restrict this.
A maximum of 24 concurrent marriages are allowed by default; refer to marry(HW) for details of how to raise this limit.