On Tue, 2008-03-18 at 14:32 +0100, Hannes Reinecke wrote: > With the target rework we cannot set the attribute of the > sysfs files as the sysfs object is not registered yet. So > just modify the attribute itself. Actually, this isn't the problem. The problem is that the target is added too early ... before we've had time to gather the necessary data from the devices, so is_visible() is returning 0 (i.e. invisible) for a lot of the files. Then when we try to chmod a nonexistent file, sysfs goes boom. I think this can be fixed by making the sysfs API more elastic ... I'll send patches shortly. James -- 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