mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vladimir Saveliev <vs@namesys.com>
To: Yijian Wang <yiwang@ECE.NEU.EDU>
Cc: linux-kernel@vger.kernel.org
Subject: Re: filesystem logical block number
Date: Thu, 26 Feb 2004 11:14:14 +0300	[thread overview]
Message-ID: <1077783254.3256.75.camel@tribesman.namesys.com> (raw)
In-Reply-To: <Pine.GSO.4.58.0402251709150.16469@benson>

Hello

On Thu, 2004-02-26 at 01:11, Yijian Wang wrote:
> Hello,
> 
> Does anybody know how to get the logical block numbers of file accesses?
> i.e. if I want to read some data from a file, how can I know which block
> numbers I am accessing? Is there any system call?
> 
#include <linux/fs.h>

ioctl (fd, FIBMAP, &block)

You have to run this as root, though

> Thank you!
> 
> regards,
> Yijian Wang
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


      reply	other threads:[~2004-02-26  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25 22:11 Yijian Wang
2004-02-26  8:14 ` Vladimir Saveliev [this message]

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=1077783254.3256.75.camel@tribesman.namesys.com \
    --to=vs@namesys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yiwang@ECE.NEU.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

all inboxes | Powered by JetHome®