On Mon, Jan 15, 2018 at 11:20:00AM +0000, Andriy Gapon wrote: > Author: avg > Date: Mon Jan 15 11:20:00 2018 > New Revision: 327996 > URL: https://svnweb.freebsd.org/changeset/base/327996 > > Log: > geom_disk / scsi_da: deny opening write-protected disks for writing > > Ths change consists of two parts. > > geom_disk: deny opening a disk for writing if it's marked as > write-protected. A new disk(9) flag is added to mark write protected > disks. A possible alternative could be to add another parameter to d_open, > so that the open mode could be passed to it and the disk drivers could > make the decision internally, but the flag required less churn.
If you need the mode, use d_fdopen cdevsw method. _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"