Re: Kernel crash with unsupported DIF protection type

2012-09-21 Thread Hannes Reinecke
On 09/20/2012 09:53 PM, Martin K. Petersen wrote: Hannes == Hannes Reinecke h...@suse.de writes: Hannes I recently got my hands on some weird drives, insisting on Hannes having been formatted with protection type 7: Lovely :| Hehe. Probably _really_ future drives :-) Hannes I've

Re: Kernel crash with unsupported DIF protection type

2012-09-21 Thread Hannes Reinecke
On 09/20/2012 09:53 PM, Martin K. Petersen wrote: Hannes == Hannes Reinecke h...@suse.de writes: Hannes I recently got my hands on some weird drives, insisting on Hannes having been formatted with protection type 7: Lovely :| Hannes I've attached a tentative patch, which allows the

Re: Kernel crash with unsupported DIF protection type

2012-09-21 Thread Martin K. Petersen
Hannes == Hannes Reinecke h...@suse.de writes: Hannes Hehe. It helps to actually test patches. I did. However, with scsi_debug I have all sorts of sanity checks in place. Not sure what your disk is connected to? Hannes sd 6:0:0:0: [sdb] Write Protect is off sd 6:0:0:0: [sdb] Mode Hannes

Re: Kernel crash with unsupported DIF protection type

2012-09-21 Thread Martin K. Petersen
Martin == Martin K Petersen martin.peter...@oracle.com writes: Martin Updated patch below... This time without mangled closing bracket... sd: Ensure we correctly disable devices with unknown protection type We set the capacity to zero when we discovered a device formatted with an unknown DIF

Re: Kernel crash with unsupported DIF protection type

2012-09-20 Thread Martin K. Petersen
Hannes == Hannes Reinecke h...@suse.de writes: Hannes I recently got my hands on some weird drives, insisting on Hannes having been formatted with protection type 7: Lovely :| Hannes I've attached a tentative patch, which allows the system to Hannes boot. However, I'm not completely happy

Re: Kernel crash with unsupported DIF protection type

2012-09-18 Thread Hannes Reinecke
On 09/18/2012 11:30 AM, Douglas Gilbert wrote: On 12-09-18 11:04 AM, Hannes Reinecke wrote: Hi all, I recently got my hands on some weird drives, insisting on having been formatted with protection type 7: # sg_readcap --16 /dev/sdb Read Capacity results: Protection: prot_en=1,

Re: Kernel crash with unsupported DIF protection type

2012-09-18 Thread Douglas Gilbert
On 12-09-18 11:35 AM, Hannes Reinecke wrote: On 09/18/2012 11:30 AM, Douglas Gilbert wrote: On 12-09-18 11:04 AM, Hannes Reinecke wrote: Hi all, I recently got my hands on some weird drives, insisting on having been formatted with protection type 7: # sg_readcap --16 /dev/sdb Read Capacity