|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
![]() |
| Viewing: Web Development Archives > FAQs > Unix/Linux > Gnu ls bug? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|