Now that filesystems respect and understand GEOM access counts, refuse

a write open of a read-only floppydisk.
This commit is contained in:
phk 2004-10-29 11:05:45 +00:00
parent 58262f7e31
commit a13179cc49

View File

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