linux - Python Fuse calling 'readlink' 6 times in a row -


I am implementing a file system using Python fuse. In a directory, there is only symlink and as such I return back to S_IFLNK | 0777 getattr method on.

Now, when I do a ls on the directory, I think the Linux call notice

in the directory every method is 6 times in a row for em> entry.

Is this a bug on my side or general behavior?

Well, it definitely is not more than once called readlink ls. Unless you are calling with this unusual flag

  $ ls share $ ls -l total 0 lrwxrwxrwx 1 entropy users entropy 14th August 8 14:26 entropy - & gt; / Home / entropy / LR vSvarVix RWX1 entropy user 11 Aug 8 14:18 Share - & gt; / Usr / share / $ ltrace ls 2 & gt; And 1. Grep readlink $ ltrace ls -l 2 & gt; And 1. Grep readlink readlink (0xbfdbb6c0, 0x9549b90, 15, 0, 0xb75ceec8) = 14 readlink (0xbfdbb6c0, 0x954a148, 12, 0xbfdbb992, 0) = 11 $  

Looks of things here with ls No flag is ever called the redlink, and it is called only once per link if the long flag is given. I do not know a lot about the fuse, so little dragon fuse, unfortunately, I am saying that it is on your side The car looks pretty much like behavior but I can go wrong beyond my mood Can not answer the question.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -