Path: utzoo!attcan!lsuc!eci386!clewis From: clewis@eci386.uucp (Chris Lewis) Newsgroups: comp.unix.xenix Subject: Re: Linking directories on Xenix??? Keywords: directory formats. Message-ID: <1989Aug25.190455.11029@eci386.uucp> Date: 25 Aug 89 19:04:55 GMT References: <1114@ispi.UUCP> <8233@spool.cs.wisc.edu> Reply-To: clewis@eci386.UUCP (Chris Lewis) Organization: R. H. Lathwell Associates: Elegant Communications, Inc. Lines: 23 In article <8233@spool.cs.wisc.edu> thurm@shorty.cs.wisc.edu (Matthew Thurmaier) writes: >In article <1114@ispi.uucp> Jonathan Bayer writes: >> I have a need to be able to link a directory to another directory. I >> know that it normally is not possible, but ... > This is somewhat of a KLUDGE, but see if you can get it to work. I have >not had time to try it myself, so there are NO PROMISSES, just hunches: >3.) We know that directories entries may only be made by root. Nope. *Only* by the kernel. There's no way of writing into a directory file from a user program except by openning the special file for the file system, traversing the hierarchy yourself, and manually zapping a block in the directory. And, if you have to allocate a new block? Well, forget it. The "link" system call will do what you want if you're root, unfortunately, fsck will probably bitch. -- Chris Lewis, R.H. Lathwell & Associates: Elegant Communications Inc. UUCP: {uunet!mnetor, utcsri!utzoo}!lsuc!eci386!clewis Phone: (416)-595-5425