diff options
author | phk <phk@FreeBSD.org> | 2004-10-29 11:05:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-29 11:05:45 +0000 |
commit | ac49cb1cad5635cb3e69d23aa5d962b0961a10ab (patch) | |
tree | 7941684f6ebad646cd1c4fdbef0f0969a3f5387f /sys/dev/fdc | |
parent | 861b10d6de8221b8f81aa745f7773b0917c2ee18 (diff) | |
download | FreeBSD-src-ac49cb1cad5635cb3e69d23aa5d962b0961a10ab.zip FreeBSD-src-ac49cb1cad5635cb3e69d23aa5d962b0961a10ab.tar.gz |
Now that filesystems respect and understand GEOM access counts, refuse
a write open of a read-only floppydisk.
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r-- | sys/dev/fdc/fdc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 0d44423..0207f9f 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; |