What is the root inode number in BSD 4.1 and 4.2?

lcc.bob at UCLA-LOCUS.ARPA lcc.bob at UCLA-LOCUS.ARPA
Sat Aug 11 03:46:49 AEST 1984


From:            Bob English <lcc.bob at UCLA-LOCUS.ARPA>

	Date: 7 Aug 84 15:18:42-PDT (Tue)
	To: Unix-Wizards at BRL-VGR.ARPA
	From: decvax!linus!axiom!smk at UCB-VAX.ARPA
	Subject: Re: What is the root inode number in BSD 4.1 and 4.2?

	Article-I.D.: axiom.589
	In-Reply-To: Article <280 at ihu1h.UUCP>

	People, if you want YOUR root to be the one displayed and you
	assume ROOTINO, be advised that chroot() destroys that assumption.
	-- 
		--steve kramer

And if your system has any mounted filesystems, ROOTINO does not
indicate the root unless the dev's are the same.  The only way to
find the root's device is with a stat.

"stat("/", &statb)" is cheap.  I really can't believe you're
worried about the extra cost.

--bob--



More information about the Comp.unix.wizards mailing list