aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-10-29 11:05:45 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-10-29 11:05:45 +0000
commit268315b6282e261f9af58138e8fda232448bfc45 (patch)
tree7941684f6ebad646cd1c4fdbef0f0969a3f5387f /sys/dev/fdc/fdc.c
parentc108bb741cd749abb181fba6501de226be8b2e18 (diff)
downloadsrc-268315b6282e261f9af58138e8fda232448bfc45.tar.gz
src-268315b6282e261f9af58138e8fda232448bfc45.zip
Now that filesystems respect and understand GEOM access counts, refuse
a write open of a read-only floppydisk.
Notes
Notes: svn path=/head/; revision=137044
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r--sys/dev/fdc/fdc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 0d44423e9319..0207f9fbf559 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1371,10 +1371,8 @@ fd_access(struct g_provider *pp, int r, int w, int e)
device_busy(fd->dev);
}
-#ifdef notyet
if (w > 0 && (fd->flags & FD_WP))
return (EROFS);
-#endif
pp->sectorsize = fd->sectorsize;
pp->stripesize = fd->ft->heads * fd->ft->sectrac * fd->sectorsize;