Re: [PATCH] SCSI: fix data corruption caused by ses v2

2008-02-15 Thread Yinghai Lu
On Friday 15 February 2008 07:53:06 am James Bottomley wrote: > On Wed, 2008-02-13 at 16:25 -0800, Yinghai Lu wrote: > > one system: initrd get courrupted: > > > > RAMDISK: Compressed image found at block 0 > > RAMDISK: incomplete write (-28 != 2048) 134217728 > > crc error > > VFS: Mounted root

Re: [PATCH] SCSI: fix data corruption caused by ses v2

2008-02-15 Thread James Bottomley
On Wed, 2008-02-13 at 16:25 -0800, Yinghai Lu wrote: > one system: initrd get courrupted: > > RAMDISK: Compressed image found at block 0 > RAMDISK: incomplete write (-28 != 2048) 134217728 > crc error > VFS: Mounted root (ext2 filesystem). > Freeing unused kernel memory: 388k freed >

Re: [PATCH] SCSI: fix data corruption caused by ses v2

2008-02-15 Thread James Bottomley
On Wed, 2008-02-13 at 16:25 -0800, Yinghai Lu wrote: one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 388k freed init_special_inode:

Re: [PATCH] SCSI: fix data corruption caused by ses v2

2008-02-15 Thread Yinghai Lu
On Friday 15 February 2008 07:53:06 am James Bottomley wrote: On Wed, 2008-02-13 at 16:25 -0800, Yinghai Lu wrote: one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2

[PATCH] SCSI: fix data corruption caused by ses v2

2008-02-13 Thread Yinghai Lu
one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 388k freed init_special_inode: bogus i_mode (17) Warning: unable to open an initial

Re: [PATCH] SCSI: fix data corruption caused by ses

2008-02-13 Thread Yinghai Lu
On Wednesday 13 February 2008 03:25:27 pm James Bottomley wrote: > On Tue, 2008-02-12 at 23:10 -0800, Yinghai Lu wrote: > > if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE && > > type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) > > -

Re: [PATCH] SCSI: fix data corruption caused by ses

2008-02-13 Thread James Bottomley
On Tue, 2008-02-12 at 23:10 -0800, Yinghai Lu wrote: > if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE && > type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) > - continue; > + goto next; > + >

Re: [PATCH] SCSI: fix data corruption caused by ses

2008-02-13 Thread James Bottomley
On Tue, 2008-02-12 at 23:10 -0800, Yinghai Lu wrote: if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) - continue; + goto next; +

Re: [PATCH] SCSI: fix data corruption caused by ses

2008-02-13 Thread Yinghai Lu
On Wednesday 13 February 2008 03:25:27 pm James Bottomley wrote: On Tue, 2008-02-12 at 23:10 -0800, Yinghai Lu wrote: if (type_ptr[0] != ENCLOSURE_COMPONENT_DEVICE type_ptr[0] != ENCLOSURE_COMPONENT_ARRAY_DEVICE) -

[PATCH] SCSI: fix data corruption caused by ses v2

2008-02-13 Thread Yinghai Lu
one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 388k freed init_special_inode: bogus i_mode (17) Warning: unable to open an initial

[PATCH] SCSI: fix data corruption caused by ses

2008-02-12 Thread Yinghai Lu
one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 388k freed init_special_inode: bogus i_mode (17) Warning: unable to open an initial

[PATCH] SCSI: fix data corruption caused by ses

2008-02-12 Thread Yinghai Lu
one system: initrd get courrupted: RAMDISK: Compressed image found at block 0 RAMDISK: incomplete write (-28 != 2048) 134217728 crc error VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 388k freed init_special_inode: bogus i_mode (17) Warning: unable to open an initial