Re: [PATCH] megaraid_sas : block physical disk access

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

 



On Fri, 2006-02-10 at 14:10 +0100, Christoph Hellwig 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.

I'd prefer to expose the underlying disks but refuse ULD binding so they
only show up in /dev/sg.  I have to say that this is extremely useful
for external applications (like clustered ones) who want to be able to
identify shared resources.  Since only root has access to /dev/sg, using
it wrongly is strongly caveat emptor.

James


-
: 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