Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 14:57:39 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org
Subject:   Re: svn commit: r327996 - in head/sys: cam/scsi geom
Message-ID:  <71909368-67b8-6cfc-6e84-3750ed75e607@FreeBSD.org>
In-Reply-To: <20180115122556.GH1684@kib.kiev.ua>
References:  <201801151120.w0FBK0Jf006161@repo.freebsd.org> <20180115122556.GH1684@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15/01/2018 14:25, Konstantin Belousov wrote:
> 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.


Well, this is a GEOM class that does not have a cdev interface.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71909368-67b8-6cfc-6e84-3750ed75e607>