Now that filesystems respect and understand GEOM access counts, refuse
a write open of a read-only floppydisk.
This commit is contained in:
parent
58262f7e31
commit
a13179cc49
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user