* filesystem logical block number @ 2004-02-25 22:11 Yijian Wang 2004-02-26 8:14 ` Vladimir Saveliev 0 siblings, 1 reply; 2+ messages in thread From: Yijian Wang @ 2004-02-25 22:11 UTC (permalink / raw) To: linux-kernel 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? Thank you! regards, Yijian Wang ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: filesystem logical block number 2004-02-25 22:11 filesystem logical block number Yijian Wang @ 2004-02-26 8:14 ` Vladimir Saveliev 0 siblings, 0 replies; 2+ messages in thread From: Vladimir Saveliev @ 2004-02-26 8:14 UTC (permalink / raw) To: Yijian Wang; +Cc: linux-kernel 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/ > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-26 8:14 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-02-25 22:11 filesystem logical block number Yijian Wang 2004-02-26 8:14 ` Vladimir Saveliev
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®