Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2001 20:39:31 -0400
From:      Andrew Lankford <arlankfo@mindspring.com>
To:        freebsd-questions@freebsd.org
Subject:   funky, this
Message-ID:  <200108200039.UAA22296@hall.mail.mindspring.net>

next in thread | raw e-mail | index | archive | help

Hey, I noticed that when I invoke the command 

ls -iCF /

I get this:

   371 COPYRIGHT	   304 kernel*		     2 proc/
 11787 bin/		   372 kernel.GENERIC*	 11883 root/
    36 boot/		   350 kernel.old*	   294 sbin/
 11785 cdrom/		 11882 mnt/		 11777 stand/
   375 compat@		469472 mnt2/		   370 sys@
  5888 dev/		469472 mnt3/		     2 tmp/
    28 etc/		   154 modules/		     2 usr/
   384 home@		 11897 modules.old/	     2 var/

Now, as I read the ls man page, the -i option should list the inode
of each file to the left of that file.  All well and good.  But
aren't all truly unique files (i.e. no hard links) in a file system
supposed to have unique inodes, even if the files in question are
directories (i.e. just special files ) ?  The tmp, usr, proc, and
var directories seem to be behaving like unique directories as they
should be, and mnt2 isn't mounted to the same file system as mnt3,
certainly.  So what gives?  

I'm scratching my head anyway.  Is there a short answer to this puzzle? 

Andrew Lankford

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108200039.UAA22296>