File:  [Research Unix] / researchv8dc / netfs / unmount.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (17 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

#include <stdio.h>
main(ac, av)
	char **av;
{
	int n, fstyp;

	switch(ac) {
	case 2:
		fstyp = 1;
		break;
	case 3:
		fstyp = atoi(av[2]);
		break;
	default:
		fprintf(stderr, "usage: unmount major-dev-no [fs-type]\n");
		exit(1);
	}
 
	n = gmount(fstyp, (atoi(av[1]))<<8, 1, 0, 0);
	if (n<0)
		perror("failed:");
}


unix.superglobalmegacorp.com