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 815 by niro, Fri Apr 24 18:32:46 2009 UTC revision 1297 by niro, Fri May 27 15:12:11 2011 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    
47    #ifndef MNTPROC_MNT
48    #  define MNTPROC_MNT 1
49    #  define MNTPROC_UMNT 3
50    #endif /* MNTPROC_MNT */
51    
52  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)
53  {  {
54   uint32_t nfs_ver, mount_ver;   uint32_t nfs_ver, mount_ver;
# Line 93  static inline void dump_params(uint32_t Line 98  static inline void dump_params(uint32_t
98   (void)path;   (void)path;
99   (void)data;   (void)data;
100    
101  #ifdef NFS_DEBUG  #ifdef DEBUG
102   struct in_addr addr = { server };   struct in_addr addr = { server };
103    
104   printf("NFS params:\n");   printf("NFS params:\n");
# Line 121  static inline void dump_fh(const char *d Line 126  static inline void dump_fh(const char *d
126   (void)data;   (void)data;
127   (void)len;   (void)len;
128    
129  #ifdef NFS_DEBUG  #ifdef DEBUG
130   int i = 0;   int i = 0;
131   int max = len - (len % 8);   int max = len - (len % 8);
132    
# Line 329  int nfs_mount(const char *pathname, cons Line 334  int nfs_mount(const char *pathname, cons
334   goto bail;   goto bail;
335   }   }
336    
337   DEBUG(("Mounted %s on %s\n", pathname, path));   dprintf("Mounted %s on %s\n", pathname, path);
338    
339   goto done;   goto done;
340    

Legend:
Removed from v.815  
changed lines
  Added in v.1297