home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 21205 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!igor.rutgers.edu!farside.rutgers.edu!hedrick
  2. From: hedrick@farside.rutgers.edu (Charles Hedrick)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: PATCH: (0.98.6) allow root to link/unlink directories
  5. Keywords: kernel,patch,0.98.6,fs,link,unlink,root,directory,namei,standard,fix
  6. Message-ID: <Dec.20.19.47.01.1992.22891@farside.rutgers.edu>
  7. Date: 21 Dec 92 00:47:01 GMT
  8. References: <1992Dec14.213538.15934@tc.cornell.edu> <1992Dec14.224916.21859@klaava.Helsinki.FI> <shanea.724812259@extro.ucc.su.OZ.AU>
  9. Organization: Rutgers Univ., New Brunswick, N.J.
  10. Lines: 25
  11.  
  12. shanea@extro.ucc.su.OZ.AU (Shane Alderton) writes:
  13.  
  14. >torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
  15.  
  16. >>current kernel forbids for a very good reason: linking/unlinking
  17. >>directories is generally a very bad idea, even if it's restricted to
  18. >>root.
  19. >>Is there anybody out there that actually needs this?
  20.  
  21. >Well, I don't know whether or not you would consider it a good reason,
  22. >but it is something I have needed to do in the past when file system
  23. >corruption caused a directory with an entry that I couldn't delete and
  24. >that the efsck of the time could not handle.
  25.  
  26. I agree.  I had the same thing happen with the normal file system a
  27. few months ago.  Fortunately I haven't had any file system corruption
  28. recently.  But when it does happen, it typically resulted in a
  29. directory that caused the system to crash when you tried to look at
  30. it.  Maybe you can do something so that you only allow removing
  31. directories that have something illegal about them.  But one way or
  32. the other, there's got to be a way to get rid of bad directories.  The
  33. last time it happened to me, I had to patch the kernel to allow
  34. unlinking directories.  I don't think it's reasonable to require the
  35. user to come up with a kernel patche to recover from file system
  36. problems.
  37.