> ----- Original Message -----
> Date: Wed, 4 May 2005 17:03:50 -0400 (EDT)
> From: Alan Stern <[EMAIL PROTECTED]>
> To: Grégory SCHMITT <[EMAIL PROTECTED]>
> Cc: linux-usb-devel@lists.sourceforge.net

> Subject: Re: [linux-usb-devel] Data corruption on usb key

> > > It sounds like the ignore-residue-for-writes patch fixed your problem.  
> > > The patch will be included in 2.6.12.  The reason for the your slow
> > > transfers is probably that you are still using the "sync" option.
> > 
> > I tried to remove the sync option. Data will be corrupted on the key,
> > even with the patch, though no error messages appear in the log.
> > Putting a low value (like 16) for max-sectors seems to help, but
> > transfers are so slow...
> 
> Please post the usb-storage verbose debugging logs.  Without those nobody 
> will be able to help you and your changes won't be accepted.

Here's the syslog. I removed the US_PR_BULK AND US_FL_NEED_OVERRIDE. I
left the US_FL_FIX_INQUIRY and US_FL_IGNORE_RESIDUE.

What I have done in this log: I plugged the key (it was detected, and
sda1 was found). I mounted sda1 (line 258), copied some files, unmounted
sda1 (manually), re-mounted sda1 (line 2410) without unplugging the key
and had a look at the files (reading only, no write operations). One
file was corrupted, others were fine.

Btw, how can I know the maximum number of sectors (max_sectors) a
device can accept ?

-- 
Grégory SCHMITT <mailto:[EMAIL PROTECTED]>



Attachment: syslog.gz
Description: Binary data

Reply via email to