Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(311)

Issue 4188047: code review 4188047: exp/winfsnotify: filesystem watcher for Windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 10 months ago by hector
Modified:
14 years, 2 months ago
Reviewers:
mattn
CC:
rsc, brainman, bradfitz, bsiegert, peterGo, golang-dev
Visibility:
Public.

Description

exp/winfsnotify: filesystem watcher for Windows

Patch Set 1 : diff -r 3e788cf7bb2d https://go.googlecode.com/hg/ #

Patch Set 2 : diff -r bd91ecd65b87 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 3 : diff -r 4892f94182a5 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 00c052a13618 https://go.googlecode.com/hg/ #

Total comments: 19

Patch Set 5 : diff -r b9a8bd8ae691 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 6 : diff -r bdd5d1a91f43 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 3198ce30ea39 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 835c4bc6a947 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+808 lines, -0 lines) Patch
A src/pkg/exp/winfsnotify/Makefile View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A src/pkg/exp/winfsnotify/winfsnotify.go View 1 2 3 4 5 6 1 chunk +569 lines, -0 lines 0 comments Download
A src/pkg/exp/winfsnotify/winfsnotify_test.go View 1 2 3 4 5 1 chunk +124 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 chunks +36 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_amd64.go View 1 2 3 4 chunks +36 lines, -0 lines 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 2 3 5 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 31
hector
Hi guys, Just a heads up about this largish code submission for inotify on Windows. ...
14 years, 10 months ago (2011-02-14 00:28:45 UTC) #1
hector
To follow up on my earlier email, I believe there is a bug in the ...
14 years, 10 months ago (2011-02-14 22:27:36 UTC) #2
brainman
Thank you for doing this. > ... I have added a fix for > this ...
14 years, 10 months ago (2011-02-15 00:42:03 UTC) #3
hector
Thanks for reviewing and testing this Alex. I'm surprised that my fix for Linux isn't ...
14 years, 10 months ago (2011-02-15 07:53:42 UTC) #4
peterGo
Alex, When I run ./all.bash for Windows XP, Windows 7, Ubuntu 10.10, 32-bit, and Ubuntu ...
14 years, 10 months ago (2011-02-16 00:56:35 UTC) #5
brainman
On 2011/02/15 07:53:42, hector wrote: > ... I'm surprised that my fix for > Linux ...
14 years, 10 months ago (2011-02-16 01:00:07 UTC) #6
brainman
On 2011/02/16 00:56:35, peterGo wrote: > > What are doing for your tests? > I ...
14 years, 10 months ago (2011-02-16 01:03:39 UTC) #7
peterGo
Alex, Your Windows PC is running Microsoft Windows 2000, an obsolete operating system whose extended ...
14 years, 10 months ago (2011-02-16 01:51:43 UTC) #8
brainman
On 2011/02/16 01:51:43, peterGo wrote: > ... It only fails on Windows > 2000. There ...
14 years, 10 months ago (2011-02-16 07:48:31 UTC) #9
bsiegert
On Wed, Feb 16, 2011 at 02:51, <go.peter.90@gmail.com> wrote: > Your Windows PC is running ...
14 years, 10 months ago (2011-02-16 08:00:04 UTC) #10
hector
Thanks all. I think the Win2k issue is caused by a simple race in the ...
14 years, 10 months ago (2011-02-16 08:20:32 UTC) #11
rsc
I'm a little uncomfortable with the idea of "inotify for Windows". inotify is a very ...
14 years, 10 months ago (2011-02-16 23:12:48 UTC) #12
hector
Ok, understood. To start things off, I looked briefly at the kind of support that ...
14 years, 10 months ago (2011-02-17 00:56:34 UTC) #13
brainman
I haven't used any such technology in the past, but http://tinyurl.com/4onwbvr paints pretty good picture ...
14 years, 10 months ago (2011-02-17 01:55:05 UTC) #14
rsc
> I can see 2 issues with it already: > > - it will not ...
14 years, 10 months ago (2011-02-17 01:57:48 UTC) #15
bsiegert
On Thu, Feb 17, 2011 at 01:56, Hector Chu <hectorchu@gmail.com> wrote: > Mac: [...] > ...
14 years, 10 months ago (2011-02-17 12:46:25 UTC) #16
hector
I think a sensible interface for Go would have us only watching directories. We probably ...
14 years, 10 months ago (2011-02-17 14:35:53 UTC) #17
hector
Resending this CL with the code under exp/ as per the plan here: http://groups.google.com/group/golang-dev/msg/f6f983a6e018d20d Please ...
14 years, 2 months ago (2011-10-13 20:55:36 UTC) #18
rsc
LGTM I'd wait until Monday to see if anyone else has comments, but it's pretty ...
14 years, 2 months ago (2011-10-14 21:27:31 UTC) #19
bradfitz
http://codereview.appspot.com/4188047/diff/27001/src/pkg/exp/winfsnotify/winfsnotify.go File src/pkg/exp/winfsnotify/winfsnotify.go (right): http://codereview.appspot.com/4188047/diff/27001/src/pkg/exp/winfsnotify/winfsnotify.go#newcode5 src/pkg/exp/winfsnotify/winfsnotify.go:5: package winfsnotify // Package winsfnotify ... some comment http://codereview.appspot.com/4188047/diff/27001/src/pkg/exp/winfsnotify/winfsnotify.go#newcode16 ...
14 years, 2 months ago (2011-10-14 21:32:13 UTC) #20
hector
:-) Many thanks for reviewing this (again). On 14 October 2011 22:27, <rsc@golang.org> wrote: > ...
14 years, 2 months ago (2011-10-14 21:35:57 UTC) #21
brainman
Just a cursory review - there is too much happening for my brain :-) The ...
14 years, 2 months ago (2011-10-15 05:07:31 UTC) #22
hector
Alex, I've adjusted the test so that it receives the events synchronously and inline with ...
14 years, 2 months ago (2011-10-15 10:31:50 UTC) #23
brainman
Test still fails for me: === RUN winfsnotify.TestNotifyEvents --- FAIL: winfsnotify.TestNotifyEvents (0.06 seconds) expected: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": ...
14 years, 2 months ago (2011-10-16 23:54:38 UTC) #24
hector
On 17 October 2011 00:54, <alex.brainman@gmail.com> wrote: > Test still fails for me: > > ...
14 years, 2 months ago (2011-10-17 07:18:25 UTC) #25
hector
PTAL
14 years, 2 months ago (2011-10-17 19:55:43 UTC) #26
brainman
LGTM. I forgot I was running it on network share. http://codereview.appspot.com/4188047/diff/36001/src/pkg/exp/winfsnotify/winfsnotify.go File src/pkg/exp/winfsnotify/winfsnotify.go (right): http://codereview.appspot.com/4188047/diff/36001/src/pkg/exp/winfsnotify/winfsnotify.go#newcode155 ...
14 years, 2 months ago (2011-10-18 03:59:29 UTC) #27
hector
Hello rsc@golang.org, alex.brainman@gmail.com, bradfitz@golang.org (cc: bsiegert@gmail.com, go.peter.90@gmail.com, golang-dev@googlegroups.com), I'd like you to review this change ...
14 years, 2 months ago (2011-10-18 20:10:16 UTC) #28
hector
*** Submitted as http://code.google.com/p/go/source/detail?r=04345e5969cf *** exp/winfsnotify: filesystem watcher for Windows R=rsc, alex.brainman, bradfitz CC=bsiegert, go.peter.90, ...
14 years, 2 months ago (2011-10-18 20:10:22 UTC) #29
mattn
I got fail. But I don't know why MoveFile occur FS_MODIFY. --- FAIL: winfsnotify.TestNotifyEvents (0.16 ...
14 years, 2 months ago (2011-10-19 02:35:21 UTC) #30
hector
14 years, 2 months ago (2011-10-19 08:14:05 UTC) #31
I can't repro this at all.  You'll have to debug this on your own.

On 19 October 2011 03:35, mattn <mattn.jp@gmail.com> wrote:
> I got fail. But I don't know why MoveFile occur FS_MODIFY.
> --- FAIL: winfsnotify.TestNotifyEvents (0.16 seconds)
> expected: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x100
> received: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x100
> == FS_CREATE
> expected: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x2
> received: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x2 ==
> FS_MODIFY
> expected: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x2
> received: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x2 ==
> FS_MODIFY
> expected: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x40
> received: "TestNotifyEvents.testdirectory/TestNotifyEvents.testfile": 0x2 ==
> FS_MODIFY
> did not receive expected event
> FAIL
> gotest: "./8.out.exe" failed: exit status 1
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b