diff options
author | dillon <dillon@FreeBSD.org> | 1999-09-17 05:34:00 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-09-17 05:34:00 +0000 |
commit | 77cf4cb54b547996b17474b25570116447285537 (patch) | |
tree | 3a59baafca356bd7ea5958a89aad60d93ce40361 /sys/sys/mdioctl.h | |
parent | 124cdf53462edef3fd859a8d3c9d6bf6be840e98 (diff) | |
download | FreeBSD-src-77cf4cb54b547996b17474b25570116447285537.zip FreeBSD-src-77cf4cb54b547996b17474b25570116447285537.tar.gz |
Fix a bug in the block number calculation for VN disks with a sector
size != 512 that are configured without a label. The bug should only
have effected swap-backed VN mounts without a label.
Add several major features to VN. In the kernel we add a swap
pre-reservation capability, which can be used to guarentee seek
consistency for swap-backed VN nodes. This also incidently allows
a swap-backed VN filesystem to be recovered after a crash in some
cases (if the same swap blocks happen to be reserved).
We also add a number of new options to vnconfig which do the work
of pre-zeroing or creating/truncating/extending a file which greatly
simplifies using VN in a file-backed configuration.
Add FreeBSD CVS label to sys/sys/vnioctl.h, as well as a new ioctl
flag for the swap pre-reservation feature.
Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
Diffstat (limited to 'sys/sys/mdioctl.h')
-rw-r--r-- | sys/sys/mdioctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h index 4f2e937..b283741 100644 --- a/sys/sys/mdioctl.h +++ b/sys/sys/mdioctl.h @@ -38,6 +38,8 @@ * from: Utah $Hdr: fdioctl.h 1.1 90/07/09$ * * @(#)vnioctl.h 8.1 (Berkeley) 6/10/93 + * + * $FreeBSD$ */ #ifndef _SYS_VNIOCTL_H_ @@ -72,5 +74,6 @@ struct vn_ioctl { #define VN_DEBUG 0x4 /* Debug data in vn driver */ #define VN_IO 0x8 /* Debug I/O in vn driver */ #define VN_DONTCLUSTER 0x10 /* Don't cluster */ +#define VN_RESERVE 0x20 /* Pre-reserve swap */ #endif /* _SYS_VNIOCTL_H_*/ |