Re: 2.5.70-mm6

Christoph Hellwig (hch@lst.de)
Sun, 8 Jun 2003 14:25:46 +0200


On Sat, Jun 07, 2003 at 05:56:49PM -0700, Andrew Morton wrote:
> > Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
> > spurious 8259A interrupt: IRQ7.
> > SCSI device sda: 490232832 512-byte hdwr sectors (250999 MB)
> > sda: cache data unavailable
> > sda: assuming drive cache: write through
> > /dev/scsi/host0/bus0/target0/lun0: p1
> > devfs_mk_dir(scsi/host0/bus0/target0/lun0): could not append to dir: ea549820 "target0"
>
> Maybe Christph can decode this one for us.

There's multiple gendisks with the same .devfs_name in scsi and we call
devfs_mk_dir on each of them. I think the right fix is to let
devfs_mk_dir succeed on an existing directory.

--- 1.91/fs/devfs/base.c Wed Jun 4 09:50:29 2003
+++ edited/fs/devfs/base.c Sat Jun 7 16:09:26 2003
@@ -1684,7 +1684,10 @@
}

error = _devfs_append_entry(dir, de, &old);
- if (error) {
+ if (error == -EEXIST) {
+ error = 0;
+ devfs_put(old);
+ } else if (error) {
PRINTK("(%s): could not append to dir: %p \"%s\"\n",
buf, dir, dir->name);
devfs_put(old);
-
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/