Newsgroups: comp.os.minix
Date: Mon, 13 Sep 1999 20:22:41 +0200
From: Jan Pechanec <pechy@hp735.cvut.cz>
X-Sender: pechy@akat.civ.cvut.cz
Subject: Question on src/fs/main.c (routine load_super())
Message-ID: <Pine.SGI.4.05.9909131851220.26078-100000@akat.civ.cvut.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
NNTP-Posting-Host: akat.civ.cvut.cz
X-NNTP-Posting-Host: akat.civ.cvut.cz
X-Trace: 13 Sep 1999 20:23:17 +0100, akat.civ.cvut.cz
Organization: Ceske Vysoke Uceni Technicke, Praha
Lines: 23
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!newsfeed.zip.com.au!195.238.2.15.MISMATCH!skynet.be!news-feed1.eu.concert.net!news.cesnet.cz!news.cvut.cz!akat.civ.cvut.cz!pechy


	Hello,

	please, I'm just interested in the following piece of code
	(2.0.0. BOOK.TXT) from ${subj}:

22851 if ( (rip->i_mode & I_TYPE) != I_DIRECTORY || rip->i_nlinks < 3)

	Can anyone explain me why 3 is there? I think that it could be
for /minix directory where kernel should be located, but I can have
only minix file as kernel and no directory there (ie. i_nlinks == 2).
I tried it, it hangs after loading kernel to RAM disk, of course. But
then I can't explain why 3 and not for example 6 (for /usr/, /etc, /dev,
....).

	Thank you, Jan.

-- 
Jan PECHANEC (mailto:pechy@hp735.cvut.cz)
Computing Center CTU (Zikova 4, Praha 6, 166 35, Czech Republic)
http://www.civ.cvut.cz, tel: +420 2 2435 2969, http://pechy.civ.cvut.cz


