Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z -I sometimes become an uninterruptible sleep process #78

Open
wiyr opened this issue Oct 11, 2019 · 2 comments
Open

z -I sometimes become an uninterruptible sleep process #78

wiyr opened this issue Oct 11, 2019 · 2 comments

Comments

@wiyr
Copy link

wiyr commented Oct 11, 2019

Because nfs problem, sometimes the path visited become unreachable, zh command will be hang up. How can i only use zh show path i can visit or just not let zh hang up? I think zh is only show the list from ~/.zlua ?

@skywind3000
Copy link
Owner

skywind3000 commented Oct 11, 2019

solution 1: set your remote paths in the $_ZL_EXCLUDE_DIRS :

export _ZL_EXCLUDE_DIRS=/mnt/nfs1/,/mnt/nfs2/,/mnt/nfs3/

They will not be recodered in your ~/.zlua.

solution2: disable path check, everytime you use z -l or z xxx, it will scan the availability of all paths in ~/.zlua database and this can be disabled by:

export _ZL_NO_CHECK=1

But you may get some unavailble paths when using z xxx

@wiyr
Copy link
Author

wiyr commented Oct 12, 2019

After I set _ZL_NO_CHECK to 1, it has no effect. _ZL_NO_CHECK seems only work for when add path to database. However, my situation is:
A few days ago, /mnt/nfs1 is work for me, so the path added to database. But now the path /mnt/nfs1 has io problem. More specifically, ls /mnt/nfs1 is hang up.

After I saw z.lua code, this line should be check by _ZL_NO_CHECK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants