plan 9 kernel history: overview | file list | diff list

1992/0611/boot/boot.c (diff list | history)

1992/0610/sys/src/9/boot/boot.c:112,1321992/0611/sys/src/9/boot/boot.c:112,133 (short | long | prev | next)
1992/0609    
		newkernel(); 
1992/0317    
 
	/* 
1992/0318    
	 *  if a local file server exists and it's not the 
	 *  root file server, start it and mount it onto /n/kfs 
1992/0611    
	 *  if a local file server exists and it's not 
	 *  running, start it and mount it onto /n/kfs 
1992/0317    
	 */ 
	if(!islocal){ 
		for(mp = method; mp->name; mp++) 
			if(strcmp(mp->name, "local")==0){ 
1992/0318    
				(*mp->config)(mp); 
				fd = (*mp->connect)(); 
				if(fd < 0) 
1992/0317    
					break; 
1992/0318    
				if(mount(fd, "/n/kfs", MAFTER|MCREATE, "", "") < 0) 
1992/0327    
					print("failed to mount kfs\n"); 
1992/0318    
				close(fd); 
1992/0317    
				break; 
			} 
1992/0611    
	for(mp = method; mp->name; mp++){ 
		if(strcmp(mp->name, "local") != 0) 
			continue; 
		if(access("#s/kfs", ORDWR) >= 0) 
			break; 
		(*mp->config)(mp); 
		fd = (*mp->connect)(); 
		if(fd < 0) 
			break; 
		if(mount(fd, "/n/kfs", MAFTER|MCREATE, "", "") < 0) 
			print("failed to mount kfs\n"); 
		close(fd); 
		break; 
1992/0317    
	} 
 
	settime(islocal); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)