From: shampavman.cg@gmail.com (shampavman)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how do i read a block
Date: Mon, 13 May 2013 13:35:54 +0530 [thread overview]
Message-ID: <51909EE2.30605@gmail.com> (raw)
Hi all,
Supposing i create a file of size 10K, it will occupy 2 blocks (4K each).
Now if i want to read only 1 block from it how can i do it?
read(fd, buf, 4096) ;
would this mean i would read the first block and all its contents?
Thanks
next reply other threads:[~2013-05-13 8:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 8:05 shampavman [this message]
2013-05-13 14:32 ` how do i read a block Valdis.Kletnieks at vt.edu
2013-05-13 16:22 ` Matthias Brugger
2013-05-14 6:29 ` Prashant Shah
2013-05-14 6:35 ` shampavman
2013-05-14 20:17 ` Valdis.Kletnieks at vt.edu
2013-05-14 20:26 ` Manish Katiyar
2013-05-15 9:10 ` Sankar P
-- strict thread matches above, loose matches on Subject: below --
2013-05-15 13:43 Shampavman
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=51909EE2.30605@gmail.com \
--to=shampavman.cg@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).