Re: [PATCH] megaraid_sas : block physical disk access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 09, 2006 at 03:47:27PM -0800, Sumant Patro wrote:
> 
> Here is the patch for review that implements slave_alloc to block direct 
> access to the Physical Disks.
> By using no_uld_attach and clearing the scsi device writeable flag the disks will be 
> still accessible even if it belongs to a RAID volume.
> I would prefer to hide the Physical Disks to block any kind of access.
> 
> I will send a separate patch to monitor drive insertion/removal to update internally 
> the physical disk list.

Far too much bloat for what you're trying to do.  If you want the same
behaviour as the initial megaraid_sas patch just take my patch and
replace the setting of no_uld_attach with return -ENXIO in
megasas_slave_alloc or move all that to slave_alloc if you you really
care.

But I'm strongly against even that, physical disks should be available
through /dev/sg.

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux