summaryrefslogtreecommitdiffstats
path: root/sys
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
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')
-rw-r--r--sys/alpha/alpha/mem.c2
-rw-r--r--sys/amd64/amd64/mem.c2
-rw-r--r--sys/i386/i386/mem.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/alpha/mem.c b/sys/alpha/alpha/mem.c
index 9a23ce4..fff71fb 100644
--- a/sys/alpha/alpha/mem.c
+++ b/sys/alpha/alpha/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
};
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
};
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index 7477567..7fcf4cb 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/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