packages: move Xorg category to its own feed, move X-related packages as well
[openwrt/svn-archive/archive.git] / net / shfs / patches / 107-df.patch
1 Index: shfs-0.35/shfs/Linux-2.4/shell.c
2 ===================================================================
3 --- shfs-0.35.orig/shfs/Linux-2.4/shell.c 2007-06-04 13:22:59.249847936 +0200
4 +++ shfs-0.35/shfs/Linux-2.4/shell.c 2007-06-04 13:22:59.643788048 +0200
5 @@ -961,11 +961,11 @@
6
7 s = info->sockbuf;
8 if ((p = strsep(&s, " ")))
9 - attr->f_blocks = simple_strtoull(p, NULL, 10);
10 + attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
11 if ((p = strsep(&s, " ")))
12 - attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
13 + attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
14 if ((p = strsep(&s, " ")))
15 - attr->f_bavail = simple_strtoull(p, NULL, 10);
16 + attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
17
18 result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
19 if (result < 0)
20 Index: shfs-0.35/shfs/Linux-2.6/shell.c
21 ===================================================================
22 --- shfs-0.35.orig/shfs/Linux-2.6/shell.c 2007-06-04 13:22:59.249847936 +0200
23 +++ shfs-0.35/shfs/Linux-2.6/shell.c 2007-06-04 13:22:59.643788048 +0200
24 @@ -974,11 +974,11 @@
25
26 s = info->sockbuf;
27 if ((p = strsep(&s, " ")))
28 - attr->f_blocks = simple_strtoull(p, NULL, 10);
29 + attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
30 if ((p = strsep(&s, " ")))
31 - attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
32 + attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
33 if ((p = strsep(&s, " ")))
34 - attr->f_bavail = simple_strtoull(p, NULL, 10);
35 + attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
36
37 result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
38 if (result < 0)