Find the answer to your Linux question:
Results 1 to 2 of 2
Hai all i have one doubt in linux internals . in linux the block size is 1024 . i have one file the size is 3070 it takes 3 blocks. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    19

    Linux internals


    Hai all
    i have one doubt in linux internals . in linux the block size is 1024 . i have one file the size is 3070 it takes 3 blocks. now i want read that file on that time the buffer cache how to get 3 blocks at a time . the read call contain any loop in internaly.



    can any one help me

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    That's very bad programming practice to assume the size of anything. You should make your routine flexible to any size...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •