Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA5941 ; Sat, 02 Jan 93 01:03:03 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!agate!usenet.ins.cwru.edu!gatech!rpi!usc!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail From: news@hrd769.brooks.af.mil (InterNet News) Newsgroups: comp.unix.bsd Subject: PC File System Code Date: 3 Jan 1993 14:20:06 -0600 Organization: Armstrong Lab MIS, Brooks AFB TX Lines: 42 Message-ID: <1i7hpmINNel@hrd769.brooks.af.mil> NNTP-Posting-Host: hrd769.brooks.af.mil I just finished loading the PC File System patches that were transmitted to the net last week. I found a bug. The symptom is that the mount works great, but the umount locks up the machine. I got looking into umount.c, and found that it was trying to unmount a MOUNT_MSDOS partition. There isn't any such beast. It is a MOUNT_PCFS partition. Below are the changes to make umount work: In the file /usr/src/sbin/umount/umount.c , change the two 'MSDOS' references to pcfs, like the example below: Starting at about line 372: for (i = 0; fslist; fslist = nextcp) { if (nextcp = index(fslist, ',')) *nextcp++ = '\0'; if (strcmp(fslist, "ufs") == 0) av[i++] = MOUNT_UFS; else if (strcmp(fslist, "nfs") == 0) av[i++] = MOUNT_NFS; else if (strcmp(fslist, "mfs") == 0) av[i++] = MOUNT_MFS; ! else if (strcmp(fslist, "pcfs") == 0) ! av[i++] = MOUNT_PCFS; else if (strcmp(fslist, "isofs") == 0) av[i++] = MOUNT_ISOFS; } av[i++] = 0; return(av); } Re Make umount and install it. A good rule for me is to make sure that install puts the executable where I run it from (using 'where' or whatever). If it doesn't, make sure it gets updated correctly in your path. TSgt Dave Burgess NCOIC AL/MIS Brooks AFB, TX BTW: This particular option is NEAT. Good Work!!!!!!! Dave