diff options
author | phk <phk@FreeBSD.org> | 2003-02-11 12:35:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-11 12:35:01 +0000 |
commit | ffd10d59c3c9a2788c9f1c96020d99248adab687 (patch) | |
tree | 4a10d7c406a8d9b7d803e9d828eb8bb19a5d628b | |
parent | f4ca4d4385b518a2a23bfa936fdde38478f6b9a9 (diff) | |
download | FreeBSD-src-ffd10d59c3c9a2788c9f1c96020d99248adab687.zip FreeBSD-src-ffd10d59c3c9a2788c9f1c96020d99248adab687.tar.gz |
Mark our struct disk with DISKFLAG_CANDELETE instead of the cdevsw with
D_CANFREE.
-rw-r--r-- | sys/contrib/dev/fla/fla.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index 3ed9f71..aad18b6 100644 --- a/sys/contrib/dev/fla/fla.c +++ b/sys/contrib/dev/fla/fla.c @@ -58,7 +58,7 @@ static struct cdevsw fla_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_DISK | D_CANFREE, + /* flags */ D_DISK, }; static struct cdevsw fladisk_cdevsw; @@ -320,6 +320,7 @@ flaattach (device_t dev) DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, DEVSTAT_PRIORITY_DISK); + sc->disk.d_flags |= DISKFLAG_CANDELETE; sc->dev = disk_create(unit, &sc->disk, 0, &fla_cdevsw, &fladisk_cdevsw); sc->dev->si_drv1 = sc; sc->unit = unit; |