aboutsummaryrefslogtreecommitdiffstats
path: root/package/shfs/patches/107-df.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-05-08 21:45:02 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-05-08 21:45:02 +0000
commit709d83f7daed016f69f12a9b7076dc77df77fcc2 (patch)
tree3ab5b2276fbcd86908600788eb8fe6a1d60cc663 /package/shfs/patches/107-df.patch
parentecd57194d8388d87551494809637a10e34c3403e (diff)
downloadupstream-709d83f7daed016f69f12a9b7076dc77df77fcc2.tar.gz
upstream-709d83f7daed016f69f12a9b7076dc77df77fcc2.tar.bz2
upstream-709d83f7daed016f69f12a9b7076dc77df77fcc2.zip
Forgot comitting patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7142 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/shfs/patches/107-df.patch')
-rw-r--r--package/shfs/patches/107-df.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/shfs/patches/107-df.patch b/package/shfs/patches/107-df.patch
new file mode 100644
index 0000000000..07eaaf234f
--- /dev/null
+++ b/package/shfs/patches/107-df.patch
@@ -0,0 +1,34 @@
+--- shfs-0.35.orig/shfs/Linux-2.4/shell.c 3 Jun 2004 13:20:44 -0000 1.8
++++ shfs-0.35/shfs/Linux-2.4/shell.c 18 Jun 2004 12:19:52 -0000
+@@ -961,11 +961,11 @@
+
+ s = info->sockbuf;
+ if ((p = strsep(&s, " ")))
+- attr->f_blocks = simple_strtoull(p, NULL, 10);
++ attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
+ if ((p = strsep(&s, " ")))
+- attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
++ attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
+ if ((p = strsep(&s, " ")))
+- attr->f_bavail = simple_strtoull(p, NULL, 10);
++ attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
+
+ result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
+ if (result < 0)
+--- shfs-0.35.orig/shfs/Linux-2.6/shell.c 3 Jun 2004 13:20:47 -0000 1.9
++++ shfs-0.35/shfs/Linux-2.6/shell.c 18 Jun 2004 12:19:53 -0000
+@@ -974,11 +974,11 @@
+
+ s = info->sockbuf;
+ if ((p = strsep(&s, " ")))
+- attr->f_blocks = simple_strtoull(p, NULL, 10);
++ attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
+ if ((p = strsep(&s, " ")))
+- attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
++ attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
+ if ((p = strsep(&s, " ")))
+- attr->f_bavail = simple_strtoull(p, NULL, 10);
++ attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
+
+ result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
+ if (result < 0)