From: Block Device <blockdevice@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Block I/O sizes
Date: Tue, 25 Oct 2005 15:13:27 +0530 [thread overview]
Message-ID: <64c763540510250243v64c0c22bt4a6e57bb5490fb77@mail.gmail.com> (raw)
Hi,
I've added a jprobe to generic_make_request and am print(k)ing the
bio->bi_sector and
bio_sectors(bio) for every bio.
I expected that for every bio thus printed the bi_sector would be
in terms of sector size.
But this is apparently not the case.
When any fs i/o is done, the bi_sector value is in terms of fs
block size and not sector size (for the block device). When i perform
raw i/o to the device ( dd for eg ), bi_sector is in terms of sectors
and not fs blocks.
In both the cases though, bio_sectors(bio) returns the amount of
data written in sectors.
To me this is rather strange. Should it not be in terms of sector size always ?
Can someone please explain ?
Thanks
-BD
next reply other threads:[~2005-10-25 9:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 9:43 Block Device [this message]
2005-10-25 10:15 ` Fawad Lateef
[not found] ` <64c763540510250521yf5e1ac3g221f42ed658d1bf0@mail.gmail.com>
2005-10-25 14:12 ` Fawad Lateef
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=64c763540510250243v64c0c22bt4a6e57bb5490fb77@mail.gmail.com \
--to=blockdevice@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®