Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/nfsmount/mount.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1121 by niro, Fri Oct 16 11:37:14 2009 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 44  struct mount_reply { Line 44  struct mount_reply {
44    
45  #define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t))  #define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t))
46    
 #ifndef MNTPROC_MNT  
 #  define MNTPROC_MNT 1  
 #  define MNTPROC_UMNT 3  
 #endif /* MNTPROC_MNT */  
   
47  static int get_ports(uint32_t server, const struct nfs_mount_data *data)  static int get_ports(uint32_t server, const struct nfs_mount_data *data)
48  {  {
49   uint32_t nfs_ver, mount_ver;   uint32_t nfs_ver, mount_ver;
# Line 98  static inline void dump_params(uint32_t Line 93  static inline void dump_params(uint32_t
93   (void)path;   (void)path;
94   (void)data;   (void)data;
95    
96  #ifdef NFS_DEBUG  #ifdef DEBUG
97   struct in_addr addr = { server };   struct in_addr addr = { server };
98    
99   printf("NFS params:\n");   printf("NFS params:\n");
# Line 126  static inline void dump_fh(const char *d Line 121  static inline void dump_fh(const char *d
121   (void)data;   (void)data;
122   (void)len;   (void)len;
123    
124  #ifdef NFS_DEBUG  #ifdef DEBUG
125   int i = 0;   int i = 0;
126   int max = len - (len % 8);   int max = len - (len % 8);
127    
# Line 334  int nfs_mount(const char *pathname, cons Line 329  int nfs_mount(const char *pathname, cons
329   goto bail;   goto bail;
330   }   }
331    
332   DEBUG(("Mounted %s on %s\n", pathname, path));   dprintf("Mounted %s on %s\n", pathname, path);
333    
334   goto done;   goto done;
335    

Legend:
Removed from v.1121  
changed lines
  Added in v.1122