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.
This commit is contained in:
Brian Feldman 1999-09-12 16:38:43 +00:00
parent 57129f42d5
commit 1a351c9ee4
3 changed files with 3 additions and 3 deletions

View File

@ -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
};

View File

@ -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
};

View File

@ -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
};