Skip to content
Snippets Groups Projects
Commit 37f8b359 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch b1_6

b=14283
i=zhenyu.xu, oleg.drokin

show "used" as only the used space, to match "df".
parent 5519af21
No related branches found
No related tags found
No related merge requests found
......@@ -724,8 +724,8 @@ static int showdf(char *mntdir, struct obd_statfs *stat,
int shift = cooked ? 0 : 10;
avail = (stat->os_bavail * stat->os_bsize) >> shift;
used = stat->os_blocks - stat->os_bavail;
used = (used * stat->os_bsize) >> shift;
used = ((stat->os_blocks - stat->os_bfree) *
stat->os_bsize) >> shift;
total = (stat->os_blocks * stat->os_bsize) >> shift;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment