-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: add note for fs.watch on virtualized env #6809
doc: add note for fs.watch on virtualized env #6809
Conversation
LGTM |
1 similar comment
LGTM |
reliably or at all. | ||
directories on network file systems (NFS, SMB, etc.) and on exposed host file | ||
systems when using virtualization software (Vagrant, Docker, etc.) often doesn't | ||
work reliably or at all. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit... I'd restructure the sentence just a bit...
Something like:
For example, watching files or directories can be unreliable, and in some
cases impossible, on network file systems (NFS, SMB, etc), and on host
file systems when using virtualization software such as Vagrant, Docker, etc.
But I'm good with this also ;-)
Left one comment but generally LGTM |
Fine for me. Will adapt it before landing. Thx |
I'm + 1for @jasnell's version, but generally LGTM as well. |
@@ -1180,8 +1180,9 @@ to be notified of filesystem changes. | |||
|
|||
If the underlying functionality is not available for some reason, then | |||
`fs.watch` will not be able to function. For example, watching files or | |||
directories on network file systems (NFS, SMB, etc.) often doesn't work | |||
reliably or at all. | |||
directories on network file systems (NFS, SMB, etc.) and on exposed host file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/and on/or/? I suspect most programmers are like me and interpret it boolean logic-style.
LGTM with a suggestion. |
Went ahead and landed it in ae0f68d Addressed both @bnoordhuis an @jasnell nits
|
Checklist
Affected core subsystem(s)
doc
Description of change
On virtualization systems
fs.watch
doesn't work reliably, which is implicitly already in the respective docs. To make it more explicit this PR adds a subsentence. The following statement defers to use of fs.watchFile, which is the potential workaround.Fixes: #6765