www2.jankratochvil.net redirection: -priv,project/captive/dist
[www.jankratochvil.net.git] / project / smbfs / smbfs-2.1.132-blocksize.diff
1 diff -ruN linux-2.1.132-orig/fs/smbfs/proc.c linux-2.1.132c/fs/smbfs/proc.c
2 --- linux-2.1.132-orig/fs/smbfs/proc.c  Mon Feb  1 23:27:12 1999
3 +++ linux-2.1.132c/fs/smbfs/proc.c      Mon Nov  9 16:47:23 1998
4 @@ -25,6 +25,9 @@
5  
6  #include <asm/string.h>
7  
8 +#include <asm/page.h>
9 +#define SMB_ST_BLKSIZE (PAGE_SIZE)
10 +
11  #define SMBFS_PARANOIA 1
12  /* #define SMBFS_DEBUG_TIMESTAMP 1 */
13  /* #define SMBFS_DEBUG_VERBOSE 1 */
14 @@ -1222,7 +1225,7 @@
15         fattr->f_nlink = 1;
16         fattr->f_uid = server->mnt->uid;
17         fattr->f_gid = server->mnt->gid;
18 -       fattr->f_blksize = 512;
19 +       fattr->f_blksize = SMB_ST_BLKSIZE;
20  }
21  
22  static void
23 @@ -1232,7 +1235,7 @@
24         if (fattr->attr & aDIR)
25         {
26                 fattr->f_mode = server->mnt->dir_mode;
27 -               fattr->f_size = 512;
28 +               fattr->f_size = SMB_ST_BLKSIZE;
29         }
30         /* Check the read-only flag */
31         if (fattr->attr & aRONLY)