Magellan Linux

Annotation of /trunk/shfs/patches/shfs-0.35-df.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 1652 byte(s)
-import

1 niro 153 --- TODO 1 Jun 2004 13:03:21 -0000 1.10
2     +++ TODO 18 Jun 2004 12:19:52 -0000
3     @@ -1,5 +1,8 @@
4     TODO for shfs:
5    
6     +* revise 2.6 kernel module install (according to lk post)
7     +* more comprehensive error messages
8     +* local uid preserve..
9     * rewrite stack allocations -> kmalloc
10     * sftp server code support
11     * autoconf
12     --- shfs/Linux-2.4/shell.c 3 Jun 2004 13:20:44 -0000 1.8
13     +++ shfs/Linux-2.4/shell.c 18 Jun 2004 12:19:52 -0000
14     @@ -961,11 +961,11 @@
15    
16     s = info->sockbuf;
17     if ((p = strsep(&s, " ")))
18     - attr->f_blocks = simple_strtoull(p, NULL, 10);
19     + attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
20     if ((p = strsep(&s, " ")))
21     - attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
22     + attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
23     if ((p = strsep(&s, " ")))
24     - attr->f_bavail = simple_strtoull(p, NULL, 10);
25     + attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
26    
27     result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
28     if (result < 0)
29     --- shfs/Linux-2.6/shell.c 3 Jun 2004 13:20:47 -0000 1.9
30     +++ shfs/Linux-2.6/shell.c 18 Jun 2004 12:19:53 -0000
31     @@ -974,11 +974,11 @@
32    
33     s = info->sockbuf;
34     if ((p = strsep(&s, " ")))
35     - attr->f_blocks = simple_strtoull(p, NULL, 10);
36     + attr->f_blocks = simple_strtoull(p, NULL, 10) >> 2;
37     if ((p = strsep(&s, " ")))
38     - attr->f_bfree = attr->f_blocks - simple_strtoull(p, NULL, 10);
39     + attr->f_bfree = attr->f_blocks - (simple_strtoull(p, NULL, 10) >> 2);
40     if ((p = strsep(&s, " ")))
41     - attr->f_bavail = simple_strtoull(p, NULL, 10);
42     + attr->f_bavail = simple_strtoull(p, NULL, 10) >> 2;
43    
44     result = sock_readln(info, info->sockbuf, SOCKBUF_SIZE);
45     if (result < 0)