home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8625 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.4 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!rpi!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
  2. From: davidsen@ariel.crd.GE.COM (william E Davidsen)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: HELP! File system problem
  5. Message-ID: <1992Aug19.152339.10416@crd.ge.com>
  6. Date: 19 Aug 92 15:23:39 GMT
  7. Article-I.D.: crd.1992Aug19.152339.10416
  8. References: <1992Aug19.050740.16584@cc.umontreal.ca> <Aug.19.03.06.08.1992.18829@athos.rutgers.edu>
  9. Sender: usenet@crd.ge.com (Required for NNTP)
  10. Reply-To: davidsen@crd.ge.com (bill davidsen)
  11. Organization: GE Corporate R&D Center, Schenectady NY
  12. Lines: 23
  13. Nntp-Posting-Host: ariel.crd.ge.com
  14.  
  15. In article <Aug.19.03.06.08.1992.18829@athos.rutgers.edu>, hedrick@athos.rutgers.edu (Charles Hedrick) writes:
  16.  
  17. | Once you're running that kernel, make yourself a utility "unlink":
  18. |   main (argc, argv)
  19. |     int argc;
  20. |     char **argv;
  21. |  { if (argc > 0)
  22. |     unlink(argv[1])
  23. |  };
  24. | Use that to remove the bad directory.  Now run fsck.  (By the way,
  25. | although I've done this a couple of times in the past, I haven't kept
  26. | copies of my old changes, so I'm giving you this without having tested
  27. | it.  That is, I know the method works, but there could be a typo in
  28. | what I'm giving you.)
  29.  
  30.   At least one, the test you have "argc > 0" is always true. I would use
  31. "argc==2" since there's no logic for other than one arg.
  32.  
  33. -- 
  34. bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  35.     I admit that when I was in school I wrote COBOL. But I didn't compile.
  36.