du -a in C and I'm using the
stat function for this. The problem is that what I get from using
st_blocks is 2× what I get when I use the command itself, does this make any sense? or am I doing something wrong?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community