Unix/Linux
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs Unix/Linux

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 1st, 2008, 06:30 AM
Stephane CHAZELAS
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Gnu ls bug?

2008-06-30, 23:04(-04), Wayne:
I noticed today that ls with "-i" alone doesn't give
correct inode numbers, when the directory is a mount
point! Here's some output showing the problem:
[]

Could be a Linux bug. With -i alone, ls gets the inode number
from readdir, which if you have , ls does a lstat to get
the type of file (directory, regular) and gets the result
from there.

So with -i alone, you get the inode of the dir entry in the
parent filesystem while with other options that trigger the call
of lstat(2), you get the inode of the mount point.

With the same ls on Solaris 7, I get the same inode numbers in
both cases.

--
S

Reply With Quote
Reply

Viewing: Web Development Archives FAQs Unix/Linux > Gnu ls bug?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT