From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-ide@vger.kernel.org
Subject: Re: ST340823A disk size issue
Date: Thu, 02 Aug 2007 16:38:11 +0400 [thread overview]
Message-ID: <46B1D033.1080907@ru.mvista.com> (raw)
In-Reply-To: <46B1CB72.1010501@ru.mvista.com>
Hello, I wrote:
>> diff -ru linux-2.6.22.1/drivers/ide/ide-disk.c
>> linux-2.6.22.1.new/drivers/ide/ide-disk.c
>> --- linux-2.6.22.1/drivers/ide/ide-disk.c 2007-07-10
>> 21:56:30.000000000 +0300
>> +++ linux-2.6.22.1.new/drivers/ide/ide-disk.c 2007-08-01
>> 22:59:47.000000000 +0300
>> @@ -502,6 +502,17 @@
>> capacity, sectors_to_MB(capacity),
>> set_max, sectors_to_MB(set_max));
>>
>> + if ((set_max % 2)
> I hope gcc will convert this to (set_max & 1) but it wouldn't hurt to
> code this explicitly.
>> && (set_max == capacity + 1)) {
> Wait, isn't set_max an address of a last sector,
Well, I was wrong: idedisk_read_native_max_address*() increments this
value bofore returning.
> and isn't capacity a
> sector count? Shouldn't it be (set_max == capacity)?
No, it was OK.
MBR, Sergei
next prev parent reply other threads:[~2007-08-02 12:36 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 9:29 ST340823A disk size issue Mikko Rapeli
2007-08-01 13:05 ` Alan Cox
2007-08-02 12:35 ` Mikko Rapeli
2007-08-01 20:34 ` Bartlomiej Zolnierkiewicz
2007-08-01 21:50 ` Mikko Rapeli
2007-08-01 22:19 ` Bartlomiej Zolnierkiewicz
2007-08-01 22:32 ` Alan Cox
2007-08-01 23:17 ` Bartlomiej Zolnierkiewicz
2007-08-02 11:33 ` Alan Cox
2007-08-02 12:27 ` Bartlomiej Zolnierkiewicz
2007-08-02 13:09 ` Alan Cox
2007-08-02 20:03 ` Mikko Rapeli
2007-08-02 20:42 ` Alan Cox
2007-08-02 22:34 ` Bartlomiej Zolnierkiewicz
2007-08-02 23:11 ` Mikko Rapeli
2007-08-02 23:35 ` Bartlomiej Zolnierkiewicz
2007-08-05 19:06 ` [PATCH] ST340823A, HPA and libata Mikko Rapeli
2007-08-05 19:32 ` Alan Cox
2007-08-08 13:25 ` Alan Cox
2007-08-15 13:56 ` Mikko Rapeli
2007-09-20 21:37 ` Jeff Garzik
2007-08-02 0:33 ` ST340823A disk size issue Bartlomiej Zolnierkiewicz
2007-08-02 12:17 ` Sergei Shtylyov
2007-08-02 12:38 ` Sergei Shtylyov [this message]
2007-08-01 22:25 ` Alan Cox
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=46B1D033.1080907@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=mikko.rapeli@iki.fi \
/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).