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