On Friday 25 October 2013 06:47:31 Martin K. Petersen wrote: > >>>>> "Dag" == Dag Nygren <dag@xxxxxxxxxx> writes: > > Dag> - What if the md module automatically set this during assembly > Dag> of the RAID? > > There are a couple of challenges here. libata lives under SCSI and there > is no official translation between SCTERC for ATA to the SCSI Read Write > Error Recovery mode page. But I can work around that. > > A harder issue is to ensure that we don't cause regressions by > requesting the SRWER mode from devices that blow up when they receive an > unexpected SCSI command (yes, USB device vendors, I'm looking at you). > > Anyway. I agree that this might be worthwhile. I'll put it on my list... Appreciate that! Would have saved me a lot of work - And I thought I knew what to do ;-) Anyway Neil had the opinion that mdadm could do it outside the kernel and he might be right there. As long as there is no other way to assemble tha raid but use mdadm. I do have smoe programming experience myself and could take a look at mdadm but would probably need some guidance. For example would is be OK to use an exec(smartctl...) which would make it a very easy programming exercise or do we then create an unwanted dependency on smartctl. Best Dag -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html