diff options
author | phk <phk@FreeBSD.org> | 1999-10-04 12:27:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-10-04 12:27:58 +0000 |
commit | 1c8b44f4ceddc4a56f5ed02a22b10dbd3e39d7b0 (patch) | |
tree | b3e32761fb001c1e51b366bb7afa8e78bca92a21 /sys/vm | |
parent | 3566fbdb6753330110d3c4bcdcc91033f218df8d (diff) | |
download | FreeBSD-src-1c8b44f4ceddc4a56f5ed02a22b10dbd3e39d7b0.zip FreeBSD-src-1c8b44f4ceddc4a56f5ed02a22b10dbd3e39d7b0.tar.gz |
Give the swap device a D_DISK flag against my better judgement.
TODO: add an open routing which fails for bdev opens.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index f3c0e86..4fc57a0 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -81,7 +81,7 @@ static struct cdevsw sw_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ 0, + /* flags */ D_DISK, /* bmaj */ BDEV_MAJOR }; |