]> git.pld-linux.org Git - packages/shfs.git/blame - shfs-df.patch
- kill depreciated functions
[packages/shfs.git] / shfs-df.patch
CommitLineData
1e38386f
PS
1--- shfs/Linux-2.4/shell.c 3 Jun 2004 13:20:44 -0000 1.8
2+++ shfs/Linux-2.4/shell.c 18 Jun 2004 12:19:52 -0000
3@@ -961,11 +961,11 @@
4
5 s = info->sockbuf;
6 if ((p = strsep(&s, " ")))
7- attr->f_blocks = simple_strtoull(p, NULL, 10);
8+ attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
9 if ((p = strsep(&s, " ")))
10- attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
11+ attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
12 if ((p = strsep(&s, " ")))
13- attr->f_bavail = simple_strtoull(p, NULL, 10);
14+ attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
15
16 result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
17 if (result < 0)
18--- shfs/Linux-2.6/shell.c 3 Jun 2004 13:20:47 -0000 1.9
19+++ shfs/Linux-2.6/shell.c 18 Jun 2004 12:19:53 -0000
20@@ -974,11 +974,11 @@
21
22 s = info->sockbuf;
23 if ((p = strsep(&s, " ")))
24- attr->f_blocks = simple_strtoull(p, NULL, 10);
25+ attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
26 if ((p = strsep(&s, " ")))
27- attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
28+ attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
29 if ((p = strsep(&s, " ")))
30- attr->f_bavail = simple_strtoull(p, NULL, 10);
31+ attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
32
33 result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
34 if (result < 0)
This page took 0.087299 seconds and 4 git commands to generate.