Magellan Linux

Annotation of /trunk/klibc/patches/klibc-1.5.15-mntproc-definitions.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 895 - (hide annotations) (download)
Fri Oct 16 11:13:32 2009 UTC (14 years, 8 months ago) by niro
File size: 809 byte(s)
mntproc definitions are missing in newer kernels

1 niro 895 Description: MNTPROC_MNT and MNTPROC_UMNT are no longer defined by the
2     kernel. Hack around this by restoring the old definitions.
3     Upstream: http://thread.gmane.org/gmane.linux.nfs/28059 suggests a better
4     fix is in progress.
5    
6     diff -Nur -x '*.orig' -x '*~' klibc-1.5.15/usr/kinit/nfsmount/mount.c klibc-1.5.15.new/usr/kinit/nfsmount/mount.c
7     --- klibc-1.5.15/usr/kinit/nfsmount/mount.c 2009-01-04 19:28:03.000000000 +0000
8     +++ klibc-1.5.15.new/usr/kinit/nfsmount/mount.c 2009-10-04 22:52:44.000000000 +0100
9     @@ -44,6 +44,11 @@
10    
11     #define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t))
12    
13     +#ifndef MNTPROC_MNT
14     +# define MNTPROC_MNT 1
15     +# define MNTPROC_UMNT 3
16     +#endif /* MNTPROC_MNT */
17     +
18     static int get_ports(uint32_t server, const struct nfs_mount_data *data)
19     {
20     uint32_t nfs_ver, mount_ver;