linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amit Sahrawat <amit.sahrawat83@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>,
	Douglas Gilbert <dgilbert@interlog.com>,
	linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_type)
Date: Wed, 5 Oct 2011 22:29:21 +0530	[thread overview]
Message-ID: <CADDb1s3FN4Ft2yXs-L8LfhoJEDP+KhSCrG8GGbOUgn_GXEr0yA@mail.gmail.com> (raw)
In-Reply-To: <CADDb1s3sPxpfNi-OD=QvVT+JWO9kUeTAmb8ZGyN0YCuBKWd4rg@mail.gmail.com>

Hi All,
Can anyone suggest what is the way ahead to detect the presence of
Write Cache in these kind of USB HDD and proceed accordingly by
assigning proper flushing method.
Please share some opinions on this.

Thanks & Regards,
Amit Sahrawat

On Wed, Oct 5, 2011 at 3:05 PM, Amit Sahrawat <amit.sahrawat83@gmail.com> wrote:
> Hi,
>
> In order to verify the SYNC_CACHE command being passed.
> First I checked on the USB HDD(Seagate - Free Agent) which is gettind
> properly identified on linux. I performed - copy of a file and then
> did 'Safely Remove Hardware" - this resulted in SYNC_CACHE command
> being passed - All logs are captured for this.
>
> Then, for the same Hard Disk - I checked for the behaviour on Windows.
> There is no SYNC CACHE command being passed in this case.
>
> Again, checked for a different hard disk(Seagate) - which has cache
> but not shown in Linux. In that case also, there is no SYNC CACHE
> command.
>
> Please find the logs for the '3' cases attached.
>
> Thanks & Regards,
> Amit Sahrawat
>
> On Tue, Oct 4, 2011 at 9:04 PM, Amit Sahrawat <amit.sahrawat83@gmail.com> wrote:
>> On Tue, Oct 4, 2011 at 7:40 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
>>> On Tue, 4 Oct 2011, Amit Sahrawat wrote:
>>>
>>>> Not able to get tools which can show the Caching Information when
>>>> connected USB device to Windows 7(Except one option which allows for
>>>> optimizing Performance by enabling/disabling Cache - But that option
>>>> is available for all the Mass storage device) - Please let me know if
>>>> there is option to view this.
>>>
>>> I have no idea.
>>>
>>>> So, I have collected USB analyzer logs for Device after connected to
>>>> Windows 7.  Please find the attached logs.
>>>
>>> It would be more informative if your logs did not show the initial
>>> connection, but did show what happens when you write a small file to
>>> the drive and then go through the "Safely Remove Hardware" procedure.
>>>
>>> The real question is whether or not Windows sends a SYNCHRONIZE CACHE
>>> command to the drive.
>> ok, I will try this out and provide the results tomorrow early morning.
>>>
>>> Alan Stern
>>>
>>>
>> Thanks & Regards,
>> Amit Sahrawat
>>
>

  parent reply	other threads:[~2011-10-05 16:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADDb1s0ZnHzM72sDnFmRrM=GFJtxj5JkYUSPo6GdyQ_=7L2m9A@mail.gmail.com>
     [not found] ` <CADDb1s0ZnHzM72sDnFmRrM=GFJtxj5JkYUSPo6GdyQ_=7L2m9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-04 14:10   ` Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_type) Alan Stern
2011-10-04 15:34     ` Amit Sahrawat
     [not found]       ` <CADDb1s3sPxpfNi-OD=QvVT+JWO9kUeTAmb8ZGyN0YCuBKWd4rg@mail.gmail.com>
2011-10-05 14:17         ` Re: Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_ =?windows-1252?Q?type=29 Alan Stern
2011-10-05 15:17           ` James Bottomley
2011-10-05 16:59         ` Amit Sahrawat [this message]
2011-10-05 17:24           ` Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_type) James Bottomley
2011-10-05 19:51             ` Amit Sahrawat
2011-10-05 20:08               ` James Bottomley
2011-10-07  5:09                 ` Amit Sahrawat
2011-10-07 14:09                   ` Re: Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_ =?windows-1252?Q?type=29 Alan Stern
     [not found] <CADDb1s2bVY04G1fZ=3KwCagZHm_dOmLPxsUBKven7=iBo_nU-g@mail.gmail.com>
     [not found] ` <CADDb1s2bVY04G1fZ=3KwCagZHm_dOmLPxsUBKven7=iBo_nU-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-03 14:25   ` Re: Re: BUG in kernel: Wrong Handling of USB HDD’s in scsiglue(slave_configure) and scsi/sd(sd_read_cache_type) Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADDb1s3FN4Ft2yXs-L8LfhoJEDP+KhSCrG8GGbOUgn_GXEr0yA@mail.gmail.com \
    --to=amit.sahrawat83@gmail.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=dgilbert@interlog.com \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).