Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi

From: Hannes Reinecke (hare_at_suse.de)
Date: 04/07/05

  • Next message: Renate Meijer: "Re: Use of C99 int types"
    Date:	Thu, 07 Apr 2005 13:21:23 +0200
    To: Christoph Hellwig <hch@infradead.org>
    
    

    Christoph Hellwig wrote:
    > On Thu, Apr 07, 2005 at 11:46:27AM +0200, Hannes Reinecke wrote:
    >>Hi all,
    >>
    >>/proc/scsi/scsi currently has a very dumb implementation of the seq_file
    >>api which causes 'cat /proc/scsi/scsi' to return with -ENOMEM when a
    >>large amount of devices are connected.
    >
    > /proc/scsi/scsi is deprecated and even only compiled in if
    > "legacy /proc/scsi/ support" is enabled. Please move over to lssci which
    > is using sysfs ASAP.
    >
    Ah. And that's enough reason for it not to work properly?
    Deprecated as it may be, but one could at least expect it to _work_.

    Puzzled.

    Cheers,

    Hannes

    -- 
    Dr. Hannes Reinecke			hare@suse.de
    SuSE Linux AG				S390 & zSeries
    Maxfeldstraße 5				+49 911 74053 688
    90409 Nürnberg				http://www.suse.de
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Renate Meijer: "Re: Use of C99 int types"

    Relevant Pages

    • Re: SII SATA request size limit
      ... > amount of data and sometimes without any particular reason after several ... bug report and will add some debug info as soon as I recompile my kernel with ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Should osst call cdev_alloc()
      ... > The reason why st.c calls cdev_allocdirectly is that this allows it to ... The devices can be shown in sysfs using device classes (st.c uses ... see no need to support many drives of this type, so I'll leave it as it is. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: sysfs abuse in recent i2o changes
      ... but i hopefully also have a good reason to do so... ... Use the binary file interface of sysfs, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [openib-general] [PATCH 5/5] [RFC] Infiniband: connection abstraction
      ... Is there any reason that we might want to make this a tunable? ... as a module parameter that's writable in sysfs... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Use proper seq_file api for /proc/scsi/scsi
      ... >> is using sysfs ASAP. ... And that's enough reason for it not to work properly? ... It works for those setups that already worked with 2.4.x, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)