IOError on file close

Michael S. Fischer michael at dynamine.net
Fri Mar 29 18:31:23 EST 2002


On Fri, Mar 29, 2002 at 03:14:28PM -0800, Sean 'Shaleh' Perry wrote:

> > That indeed appears to be the case, but it looks like a bug in the 
> > kernel to me.
> 
> why? /proc/scsi/scsi is clearly marked 444 on my machine, not 644.

It's ENOSYS, not EPERM.  I'm running this script as root.

Specifically, the code is here in the Linux kernel (2.4.17), in
drivers/scsi/scsi.c:

    for (scd = HBA_ptr->host_queue; scd; scd = scd->next) {
            if ((scd->channel == channel
                  && scd->id == id
                  && scd->lun == lun)) {
                    break;
            }
    }

    err = -ENOSYS;
    if (scd)
            goto out;       /* We do not yet support unplugging */

-- 
Michael S. Fischer / michael at dynamine.net / +1 650-533-4684
Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA




More information about the Python-list mailing list