Lines 961-971
Link Here
|
961 |
|
961 |
|
962 |
s = info->sockbuf; |
962 |
s = info->sockbuf; |
963 |
if ((p = strsep(&s, " "))) |
963 |
if ((p = strsep(&s, " "))) |
964 |
attr->f_blocks = simple_strtoull(p, NULL, 10); |
964 |
attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2; |
965 |
if ((p = strsep(&s, " "))) |
965 |
if ((p = strsep(&s, " "))) |
966 |
attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10); |
966 |
attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2); |
967 |
if ((p = strsep(&s, " "))) |
967 |
if ((p = strsep(&s, " "))) |
968 |
attr->f_bavail = simple_strtoull(p, NULL, 10); |
968 |
attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2; |
969 |
|
969 |
|
970 |
result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE); |
970 |
result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE); |
971 |
if (result < 0) |
971 |
if (result < 0) |