Re: [pnfs] [PATCH 05/28] pnfsblock: expose scsi interface

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

 



On Wed, Mar 12, 2008 at 06:33:34PM +0200, Benny Halevy wrote:
> This calls for a layering violation.
> 
> To fill-in more context, here's an excerpt from the next patch,
> showing how you use shost_class to scan all scsi disks:

Yes, absolutely.  No one outside of few places in the core scsi code
should ever iterate over the scsi disks.

> My question is how should a proper API between the scsi layer and
> the block layout driver look like?
> 
> Can you list your requirements, e.g.:
> - scanning all available devices,
> 
> - discovering new devices on the fly
> 
> - getting notified for new devices?

Neither.  pnfs shouldn't open block devices from kernelspace at all,
but do it's disovery in userspace.

Or even better this whole block layout driver crap should go away
completely and the people who have designed it beaten up until they
aren't recognizable anymore.

--
To unsubscribe from this list: 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