nfsroot.c (b05005772f34497eb2b7415a651fe785cbe70e16) | nfsroot.c (e9ff3990f08e9a0c2839cc22808b01732ea5b3e4) |
---|---|
1/* 2 * $Id: nfsroot.c,v 1.45 1998/03/07 10:44:46 mj Exp $ 3 * 4 * Copyright (C) 1995, 1996 Gero Kuhlmann <gero@gkminix.han.de> 5 * 6 * Allow an NFS filesystem to be mounted as root. The way this works is: 7 * (1) Use the IP autoconfig mechanism to set local IP addresses and routes. 8 * (2) Handle RPC negotiation with the system which replied to RARP or --- 298 unchanged lines hidden (view full) --- 307 strcpy(buf, NFS_ROOT); 308 309 /* Process options received from the remote server */ 310 root_nfs_parse(root_server_path, buf); 311 312 /* Override them by options set on kernel command-line */ 313 root_nfs_parse(name, buf); 314 | 1/* 2 * $Id: nfsroot.c,v 1.45 1998/03/07 10:44:46 mj Exp $ 3 * 4 * Copyright (C) 1995, 1996 Gero Kuhlmann <gero@gkminix.han.de> 5 * 6 * Allow an NFS filesystem to be mounted as root. The way this works is: 7 * (1) Use the IP autoconfig mechanism to set local IP addresses and routes. 8 * (2) Handle RPC negotiation with the system which replied to RARP or --- 298 unchanged lines hidden (view full) --- 307 strcpy(buf, NFS_ROOT); 308 309 /* Process options received from the remote server */ 310 root_nfs_parse(root_server_path, buf); 311 312 /* Override them by options set on kernel command-line */ 313 root_nfs_parse(name, buf); 314 |
315 cp = system_utsname.nodename; | 315 cp = utsname()->nodename; |
316 if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { 317 printk(KERN_ERR "Root-NFS: Pathname for remote directory too long.\n"); 318 return -1; 319 } 320 sprintf(nfs_path, buf, cp); 321 322 return 1; 323} --- 202 unchanged lines hidden --- | 316 if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { 317 printk(KERN_ERR "Root-NFS: Pathname for remote directory too long.\n"); 318 return -1; 319 } 320 sprintf(nfs_path, buf, cp); 321 322 return 1; 323} --- 202 unchanged lines hidden --- |