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

doc: add note for fs.watch on virtualized env #6809

Closed
wants to merge 1 commit into from
Closed

doc: add note for fs.watch on virtualized env #6809

wants to merge 1 commit into from

Conversation

eljefedelrodeodeljefe
Copy link
Contributor

Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • documentation is changed or added
  • the commit message follows commit guidelines
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

@eljefedelrodeodeljefe eljefedelrodeodeljefe added doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. labels May 17, 2016
@cjihrig
Copy link
Contributor

cjihrig commented May 17, 2016

LGTM

1 similar comment
@thefourtheye
Copy link
Contributor

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.

Copy link
Member

@jasnell jasnell May 17, 2016

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 ;-)

@jasnell
Copy link
Member

jasnell commented May 17, 2016

Left one comment but generally LGTM

@eljefedelrodeodeljefe
Copy link
Contributor Author

Fine for me. Will adapt it before landing. Thx

@mhdawson
Copy link
Member

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
Copy link
Member

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.

@bnoordhuis
Copy link
Member

LGTM with a suggestion.

Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
eljefedelrodeodeljefe added a commit that referenced this pull request May 19, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
@eljefedelrodeodeljefe
Copy link
Contributor Author

Went ahead and landed it in ae0f68d

Addressed both @bnoordhuis an @jasnell nits

For example, watching files or
directories can be unreliable, and in some cases impossible, on network file
systems (NFS, SMB, etc), or host file systems when using virtualization software
such as Vagrant, Docker, etc.

Fishrock123 pushed a commit that referenced this pull request May 23, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
rvagg pushed a commit that referenced this pull request Jun 2, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jun 3, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Jun 24, 2016
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jun 24, 2016
Fixes: #6765
PR-URL: #6809
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants