home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 10897 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usc!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
  2. From: news@hrd769.brooks.af.mil (InterNet News)
  3. Newsgroups: comp.unix.bsd
  4. Subject: PC File System Code
  5. Date: 3 Jan 1993 14:20:06 -0600
  6. Organization: Armstrong Lab MIS, Brooks AFB TX
  7. Lines: 42
  8. Message-ID: <1i7hpmINNel@hrd769.brooks.af.mil>
  9. NNTP-Posting-Host: hrd769.brooks.af.mil
  10.  
  11.   I just finished loading the PC File System patches that were transmitted
  12. to the net last week.  I found a bug.
  13.  
  14.   The symptom is that the mount works great, but the umount locks up the
  15. machine.  I got looking into umount.c, and found that it was trying to
  16. unmount a MOUNT_MSDOS partition.  There isn't any such beast.  It is a
  17. MOUNT_PCFS partition.  Below are the changes to make umount work:
  18.  
  19.   In the file /usr/src/sbin/umount/umount.c  , change the two 'MSDOS'
  20. references to pcfs, like the example below:
  21.  
  22. Starting at about line 372:
  23.  
  24.     for (i = 0; fslist; fslist = nextcp) {
  25.         if (nextcp = index(fslist, ','))
  26.             *nextcp++ = '\0';
  27.         if (strcmp(fslist, "ufs") == 0)
  28.             av[i++] = MOUNT_UFS;
  29.         else if (strcmp(fslist, "nfs") == 0)
  30.             av[i++] = MOUNT_NFS;
  31.         else if (strcmp(fslist, "mfs") == 0)
  32.             av[i++] = MOUNT_MFS;
  33. !        else if (strcmp(fslist, "pcfs") == 0)
  34. !            av[i++] = MOUNT_PCFS;
  35.         else if (strcmp(fslist, "isofs") == 0)
  36.             av[i++] = MOUNT_ISOFS;
  37.     }
  38.     av[i++] = 0;
  39.     return(av);
  40. }
  41.  
  42. Re Make umount and install it.  A good rule for me is to make sure that install
  43. puts the executable where I run it from (using 'where' or whatever).  If it   
  44. doesn't, make sure it gets updated correctly in your path.
  45.  
  46. TSgt Dave Burgess
  47. NCOIC AL/MIS
  48. Brooks AFB, TX
  49.  
  50. BTW:  This particular option is NEAT.  Good Work!!!!!!!
  51.  
  52. Dave
  53.