summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/mem.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-09-12 16:38:43 +0000
committergreen <green@FreeBSD.org>1999-09-12 16:38:43 +0000
commit3a7c95374a950767ea3ada1599f05fcfa9182bad (patch)
tree7b93c79591e7057872ee36f3f16fd57942a2370c /sys/amd64/amd64/mem.c
parent79eb0d6064ef417dee3a5e80a0f6b75f1e7faefb (diff)
downloadFreeBSD-src-3a7c95374a950767ea3ada1599f05fcfa9182bad.zip
FreeBSD-src-3a7c95374a950767ea3ada1599f05fcfa9182bad.tar.gz
Make the d_flags of mem devices D_DISK to signify that they are disk-like
random-seekable devices. This lets dd(1) know it can seek on them. It also affects spec_vnopen() (IIRC), but only makes the path of execution smaller, and does not change its behavior. This is when securelevel >= 2.
Diffstat (limited to 'sys/amd64/amd64/mem.c')
-rw-r--r--sys/amd64/amd64/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index 7477567..7fcf4cb 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -95,7 +95,7 @@ static struct cdevsw mem_cdevsw = {
/* maj */ CDEV_MAJOR,
/* dump */ nodump,
/* psize */ nopsize,
- /* flags */ 0,
+ /* flags */ D_DISK,
/* maxio */ 0,
/* bmaj */ -1
};
OpenPOWER on IntegriCloud