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

Issue 2049043: code review 2049043: Add Linux inotify support

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by leczb
Modified:
14 years, 5 months ago
Reviewers:
rsc1
CC:
rsc, albert.strasheim, rog, jacek.masiulaniec_gmail.com, golang-dev
Visibility:
Public.

Description

os/inotify: new package This patch adds a new package: os/inotify, which provides a Go wrapper to the Linux inotify system.

Patch Set 1 #

Patch Set 2 : code review 2049043: Add Linux inotify support #

Patch Set 3 : code review 2049043: Add Linux inotify support #

Patch Set 4 : code review 2049043: Add Linux inotify support #

Patch Set 5 : code review 2049043: Add Linux inotify support #

Patch Set 6 : code review 2049043: Add Linux inotify support #

Total comments: 2

Patch Set 7 : code review 2049043: Add Linux inotify support #

Total comments: 2

Patch Set 8 : code review 2049043: Add Linux inotify support #

Total comments: 32

Patch Set 9 : code review 2049043: Add Linux inotify support #

Patch Set 10 : code review 2049043: Add Linux inotify support #

Total comments: 8

Patch Set 11 : code review 2049043: os/inotify: new package #

Total comments: 1

Patch Set 12 : code review 2049043: os/inotify: new package #

Patch Set 13 : code review 2049043: os/inotify: new package #

Total comments: 3

Patch Set 14 : code review 2049043: os/inotify: new package #

Total comments: 4

Patch Set 15 : code review 2049043: os/inotify: new package #

Total comments: 2

Patch Set 16 : code review 2049043: os/inotify: new package #

Patch Set 17 : code review 2049043: os/inotify: new package #

Patch Set 18 : code review 2049043: os/inotify: new package #

Patch Set 19 : code review 2049043: os/inotify: new package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+414 lines, -1 line) Patch
M src/pkg/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +9 lines, -0 lines 0 comments Download
M src/pkg/deps.bash View 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/os/inotify/Makefile View 1 chunk +14 lines, -0 lines 0 comments Download
A src/pkg/os/inotify/inotify_linux.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +291 lines, -0 lines 0 comments Download
A src/pkg/os/inotify/inotify_linux_test.go View 1 2 3 4 5 6 7 8 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 34
leczb
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 7 months ago (2010-09-23 11:52:54 UTC) #1
rsc1
Let's do this review in two steps. Could you drop the os files from this ...
14 years, 7 months ago (2010-09-24 19:39:07 UTC) #2
leczb
On 2010/09/24 19:39:07, rsc1 wrote: > Let's do this review in two steps. > > ...
14 years, 7 months ago (2010-09-27 12:32:14 UTC) #3
albert.strasheim
http://codereview.appspot.com/2049043/diff/18001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/18001/src/pkg/os/inotify/inotify_linux.go#newcode77 src/pkg/os/inotify/inotify_linux.go:77: go in.readEvents() Hello all I'm not sure what the ...
14 years, 7 months ago (2010-09-29 15:04:40 UTC) #4
leczb
http://codereview.appspot.com/2049043/diff/18001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/18001/src/pkg/os/inotify/inotify_linux.go#newcode77 src/pkg/os/inotify/inotify_linux.go:77: go in.readEvents() On 2010/09/29 15:04:40, albert.strasheim wrote: > Hello ...
14 years, 7 months ago (2010-09-29 15:26:30 UTC) #5
albert.strasheim
Hello all On 2010/09/23 11:52:54, leczb wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd ...
14 years, 7 months ago (2010-09-30 14:52:37 UTC) #6
leczb
On 2010/09/30 14:52:37, albert.strasheim wrote: > Hello all > > On 2010/09/23 11:52:54, leczb wrote: ...
14 years, 7 months ago (2010-09-30 14:54:58 UTC) #7
leczb
On 2010/09/30 14:54:58, leczb wrote: > On 2010/09/30 14:52:37, albert.strasheim wrote: > > Hello all ...
14 years, 7 months ago (2010-09-30 15:57:43 UTC) #8
albert.strasheim
Hello all On 2010/09/30 15:57:43, leczb wrote: > Background: > The file descriptor is closed ...
14 years, 7 months ago (2010-10-01 05:42:18 UTC) #9
leczb
On Fri, Oct 1, 2010 at 06:42, <fullung@gmail.com> wrote: > Hello all > > > ...
14 years, 7 months ago (2010-10-01 16:04:07 UTC) #10
albert.strasheim
http://codereview.appspot.com/2049043/diff/26001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/26001/src/pkg/os/inotify/inotify_linux.go#newcode105 src/pkg/os/inotify/inotify_linux.go:105: println("adding watch for " + path) Probably didn't mean ...
14 years, 7 months ago (2010-10-05 14:35:39 UTC) #11
leczb
http://codereview.appspot.com/2049043/diff/26001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/26001/src/pkg/os/inotify/inotify_linux.go#newcode105 src/pkg/os/inotify/inotify_linux.go:105: println("adding watch for " + path) On 2010/10/05 14:35:39, ...
14 years, 7 months ago (2010-10-05 14:41:10 UTC) #12
leczb
Hi Russ, Could you please take a look at it again? /leczb On 2010/09/24 19:39:07, ...
14 years, 5 months ago (2010-11-17 11:47:53 UTC) #13
rsc
please change the first line of the cl desc to os/inotify: new package This interface ...
14 years, 5 months ago (2010-12-07 19:19:45 UTC) #14
leczb
Thanks for the constructive review. I've changed the code as suggested, but there are still ...
14 years, 5 months ago (2010-12-09 14:17:57 UTC) #15
rsc
> I fixed the sorting, but didn't remove it from the list. > It should ...
14 years, 5 months ago (2010-12-09 14:55:00 UTC) #16
rsc
http://codereview.appspot.com/2049043/diff/49001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/49001/src/pkg/os/inotify/inotify_linux.go#newcode209 src/pkg/os/inotify/inotify_linux.go:209: for event_mask, event_name := range event_names { look for ...
14 years, 5 months ago (2010-12-09 14:55:02 UTC) #17
rog
http://codereview.appspot.com/2049043/diff/49001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/49001/src/pkg/os/inotify/inotify_linux.go#newcode209 src/pkg/os/inotify/inotify_linux.go:209: for event_mask, event_name := range event_names { On 2010/12/09 ...
14 years, 5 months ago (2010-12-09 15:10:21 UTC) #18
leczb
http://codereview.appspot.com/2049043/diff/36001/src/pkg/Makefile File src/pkg/Makefile (right): http://codereview.appspot.com/2049043/diff/36001/src/pkg/Makefile#newcode102 src/pkg/Makefile:102: os/inotify\ On 2010/12/07 19:19:45, rsc wrote: > not sorted ...
14 years, 5 months ago (2010-12-09 15:26:04 UTC) #19
rsc
>> not sorted right >> but also will cause other builds to fail. instead i ...
14 years, 5 months ago (2010-12-09 15:29:06 UTC) #20
rsc
The deps.bash problem is probably that the script is too clever about pulling out the ...
14 years, 5 months ago (2010-12-09 15:29:54 UTC) #21
jacekm
http://codereview.appspot.com/2049043/diff/58001/src/pkg/Makefile File src/pkg/Makefile (right): http://codereview.appspot.com/2049043/diff/58001/src/pkg/Makefile#newcode103 src/pkg/Makefile:103: os/inotify\ Use tab instead of 8 spaces; they're visible ...
14 years, 5 months ago (2010-12-09 15:33:21 UTC) #22
leczb
On 2010/12/09 15:29:54, rsc wrote: > The deps.bash problem is probably that the > script ...
14 years, 5 months ago (2010-12-09 15:41:50 UTC) #23
jacekm
http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go#newcode217 src/pkg/os/inotify/inotify_linux.go:217: events = " UNKOWN" s/UNKOWN/UNKNOWN/
14 years, 5 months ago (2010-12-09 16:14:09 UTC) #24
leczb
http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go#newcode217 src/pkg/os/inotify/inotify_linux.go:217: events = " UNKOWN" On 2010/12/09 16:14:09, jacekm wrote: ...
14 years, 5 months ago (2010-12-09 16:25:22 UTC) #25
jacekm
http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go#newcode13 src/pkg/os/inotify/inotify_linux.go:13: watcher.Watch("/tmp") Examples should not contain bugs so please don't ...
14 years, 5 months ago (2010-12-09 16:47:07 UTC) #26
rsc1
http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go#newcode217 src/pkg/os/inotify/inotify_linux.go:217: events = " UNKOWN" On 2010/12/09 16:25:22, leczb wrote: ...
14 years, 5 months ago (2010-12-09 17:12:13 UTC) #27
jacekm
http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go#newcode69 src/pkg/os/inotify/inotify_linux.go:69: done: make(chan bool, 1)} Multi-line literals usually end with ...
14 years, 5 months ago (2010-12-09 17:15:03 UTC) #28
leczb
On 2010/12/09 17:12:13, rsc1 wrote: > http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go > File src/pkg/os/inotify/inotify_linux.go (right): > > http://codereview.appspot.com/2049043/diff/55002/src/pkg/os/inotify/inotify_linux.go#newcode217 > ...
14 years, 5 months ago (2010-12-09 17:22:04 UTC) #29
rsc1
LGTM Please fix nit below and I will submit http://codereview.appspot.com/2049043/diff/63002/src/pkg/Makefile File src/pkg/Makefile (right): http://codereview.appspot.com/2049043/diff/63002/src/pkg/Makefile#newcode144 src/pkg/Makefile:144: ...
14 years, 5 months ago (2010-12-09 17:28:00 UTC) #30
leczb
Thanks Jacek for the review. Balazs http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go File src/pkg/os/inotify/inotify_linux.go (right): http://codereview.appspot.com/2049043/diff/72001/src/pkg/os/inotify/inotify_linux.go#newcode13 src/pkg/os/inotify/inotify_linux.go:13: watcher.Watch("/tmp") On 2010/12/09 ...
14 years, 5 months ago (2010-12-09 17:28:12 UTC) #31
leczb
On 2010/12/09 17:28:00, rsc1 wrote: > LGTM Great! Thanks for the thorough and patient review ...
14 years, 5 months ago (2010-12-09 17:37:16 UTC) #32
leczb
http://codereview.appspot.com/2049043/diff/63002/src/pkg/Makefile File src/pkg/Makefile (right): http://codereview.appspot.com/2049043/diff/63002/src/pkg/Makefile#newcode144 src/pkg/Makefile:144: DIRS+=\ On 2010/12/09 17:28:00, rsc1 wrote: > drop leading ...
14 years, 5 months ago (2010-12-09 17:37:26 UTC) #33
rsc
14 years, 5 months ago (2010-12-09 18:11:41 UTC) #34
*** Submitted as 354e81112204 ***

os/inotify: new package

This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.

R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
http://codereview.appspot.com/2049043

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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