[cs631apue] Midterm Question
tparisi
tparisi at stevens.edu
Tue Sep 25 10:48:44 EDT 2012
Then I am confused because st_blocks holds the number of blocks the
file is allocated. What size blocks would that be calculated for? I
ask because I only set the BLOCKSIZE to 512 in my program and then count
the number of blocks the files use. Then I use export BLOCKSIZE=512 and
run ls -l and I get the same number for the total. So I guess my
question is, why do these numbers match if I have to use the BLOCKSIZE
somehow in my ls program?
Thanks,
Tom Parisi
More information about the cs631apue
mailing list