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

Issue 86160044: code review 86160044: os: Implement symlink support for Windows

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by mlf
Modified:
9 years, 9 months ago
Reviewers:
gobot, brainman
CC:
golang-codereviews, brainman, rsc, minux
Visibility:
Public.

Description

os: Implement symlink support for Windows Fixes Issue 5750. https://code.google.com/p/go/issues/detail?id=5750 os: Separate windows from posix. Implement windows support. path/filepath: Use the same implementation as other platforms syscall: Add/rework new APIs for Windows

Patch Set 1 #

Patch Set 2 : diff -r 1eaf29392348 https://code.google.com/p/go #

Patch Set 3 : diff -r 1eaf29392348 https://code.google.com/p/go #

Patch Set 4 : diff -r e0ad7e329637 https://code.google.com/p/go #

Patch Set 5 : diff -r e0ad7e329637 https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r 75040398cb4e https://code.google.com/p/go #

Patch Set 7 : diff -r 4af9a710ed44 https://code.google.com/p/go #

Patch Set 8 : diff -r 4af9a710ed44 https://code.google.com/p/go #

Total comments: 32

Patch Set 9 : diff -r 1a9d124153b9 https://code.google.com/p/go #

Patch Set 10 : diff -r 991519645363 https://code.google.com/p/go #

Patch Set 11 : diff -r 991519645363 https://code.google.com/p/go #

Total comments: 2

Patch Set 12 : diff -r eae7f816eb6c https://code.google.com/p/go #

Total comments: 19

Patch Set 13 : diff -r d6c7ec5112ec https://code.google.com/p/go #

Total comments: 5

Patch Set 14 : diff -r c0a68bcf19ae https://code.google.com/p/go #

Patch Set 15 : diff -r c0a68bcf19ae https://code.google.com/p/go #

Total comments: 9

Patch Set 16 : diff -r 13af066c1267 https://code.google.com/p/go #

Patch Set 17 : diff -r 13af066c1267 https://code.google.com/p/go #

Patch Set 18 : diff -r 13af066c1267 https://code.google.com/p/go #

Total comments: 2

Patch Set 19 : diff -r 418b1fb34050 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -73 lines) Patch
M src/pkg/os/file_posix.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -20 lines 0 comments Download
M src/pkg/os/file_unix.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
M src/pkg/os/file_windows.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +98 lines, -0 lines 0 comments Download
M src/pkg/os/os_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +13 lines, -3 lines 0 comments Download
A src/pkg/os/os_windows_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M src/pkg/os/path_test.go View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/os/stat_windows.go View 1 6 chunks +29 lines, -21 lines 0 comments Download
M src/pkg/os/types_windows.go View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/path/filepath/match_test.go View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M src/pkg/path/filepath/path_test.go View 1 2 3 4 5 6 4 chunks +7 lines, -5 lines 0 comments Download
M src/pkg/path/filepath/path_windows_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
M src/pkg/path/filepath/symlink.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +12 lines, -7 lines 0 comments Download
A src/pkg/path/filepath/symlink_unix.go View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/path/filepath/symlink_windows.go View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +39 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +39 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_amd64.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +39 lines, -0 lines 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +35 lines, -11 lines 0 comments Download

Messages

Total messages: 52
mlf
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years ago (2014-04-09 19:49:57 UTC) #1
bradfitz
This is too late for Go 1.3 (the new feature code freeze was March 1st... ...
10 years ago (2014-04-10 15:49:05 UTC) #2
brainman
10 years ago (2014-04-11 03:49:38 UTC) #3
gobot
R=alex.brainman@gmail.com (assigned by bradfitz@golang.org)
10 years ago (2014-04-14 23:48:39 UTC) #4
rsc
R=close Please run 'hg mail' once 1.3 is out to reopen this CL for 1.4.
10 years ago (2014-04-17 02:52:29 UTC) #5
brainman
I tried to apply this to current tip, but no luck. Alex
9 years, 10 months ago (2014-06-16 04:06:53 UTC) #6
mlf
I have managed to fix the changes, however per the rules of testing, I caused ...
9 years, 10 months ago (2014-06-19 05:36:16 UTC) #7
mlf
I have managed to fix the changes, however per the rules of testing, I caused ...
9 years, 10 months ago (2014-06-19 05:36:22 UTC) #8
brainman
I still cannot review your changes, because I cannot apply them to the current tip: ...
9 years, 10 months ago (2014-06-20 00:15:37 UTC) #9
mlf
Just updated the patch, however my delete of src/pkg/path/filepath/symlink_windows.go won't go through. I end up ...
9 years, 10 months ago (2014-06-20 12:59:10 UTC) #10
mlf
Figured it out... This should be something that can be applied now.
9 years, 10 months ago (2014-06-20 13:03:33 UTC) #11
brainman
I can use you patch now. But some tests are failing: ... ok net/smtp 0.156s ...
9 years, 10 months ago (2014-06-23 07:03:51 UTC) #12
mlf
Something has changed along the way so I am investigating the os_test failures. Although I ...
9 years, 10 months ago (2014-06-23 20:02:31 UTC) #13
mlf
Fixed the filepath/path_test.go -- had to add a Tolower to make the comparison work since ...
9 years, 10 months ago (2014-06-24 01:48:10 UTC) #14
brainman
On 2014/06/24 01:48:10, mlf wrote: > Fixed the filepath/path_test.go -- had to add a Tolower ...
9 years, 10 months ago (2014-06-24 07:21:38 UTC) #15
mlf
Lets take these as separate items. 1. EvalSymLink can easily be reverted to a mixture ...
9 years, 10 months ago (2014-06-24 11:15:24 UTC) #16
brainman
On 2014/06/24 11:15:24, mlf wrote: > 1. EvalSymLink can easily be reverted to a mixture ...
9 years, 10 months ago (2014-06-25 05:10:45 UTC) #17
mlf
While creating symlinks isn't common I agree, reading them however is a different story. If ...
9 years, 10 months ago (2014-06-25 12:12:32 UTC) #18
brainman
On 2014/06/25 12:12:32, mlf wrote: > ... > What I am thinking is to add ...
9 years, 10 months ago (2014-06-26 07:11:14 UTC) #19
mlf
I just made all the changes so the tests should pass whether you are on ...
9 years, 10 months ago (2014-06-28 20:36:31 UTC) #20
brainman
Sorry, quite a few comments. It is big change. But before you address my comments, ...
9 years, 9 months ago (2014-07-02 06:33:42 UTC) #21
mlf
It looks to be a bug. The CreateFile is failing..... I will investigate this first ...
9 years, 9 months ago (2014-07-02 18:33:16 UTC) #22
mlf
The more I look at this problem, the more I think the answers you are ...
9 years, 9 months ago (2014-07-03 00:11:33 UTC) #23
brainman
On 2014/07/03 00:11:33, mlf wrote: > The more I look at this problem, the more ...
9 years, 9 months ago (2014-07-03 02:55:50 UTC) #24
mlf
I will go with skipping on any error. However, you testcase isn't the same. Notice ...
9 years, 9 months ago (2014-07-03 03:13:49 UTC) #25
brainman
On 2014/07/03 03:13:49, mlf wrote: > ... > I tried a slightly modified version: > ...
9 years, 9 months ago (2014-07-03 03:19:40 UTC) #26
mlf
https://codereview.appspot.com/86160044/diff/140001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): https://codereview.appspot.com/86160044/diff/140001/src/pkg/os/file_windows.go#newcode531 src/pkg/os/file_windows.go:531: if !isAbs(oldname) { On 2014/07/02 06:33:40, brainman wrote: > ...
9 years, 9 months ago (2014-07-07 04:07:02 UTC) #27
brainman
On 2014/07/07 04:07:02, mlf wrote: > > I am trying to decide if this should ...
9 years, 9 months ago (2014-07-07 10:40:03 UTC) #28
mlf
I am still tracking down 3 failures TestLongSymlink -- failing on GetFileAttributesEx TestMkdirAllWithSymlink -- this ...
9 years, 9 months ago (2014-07-07 12:24:44 UTC) #29
mlf
All testcases now pass. Had to make the symlink function behave more unix like. Did ...
9 years, 9 months ago (2014-07-08 03:33:20 UTC) #30
brainman
On 2014/07/08 03:33:20, mlf wrote: > All testcases now pass. ... If your changes are ...
9 years, 9 months ago (2014-07-08 06:36:23 UTC) #31
mlf
Hello golang-codereviews@googlegroups.com, bradfitz@golang.org, alex.brainman@gmail.com, gobot@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 9 months ago (2014-07-08 11:58:20 UTC) #32
brainman
I could not patch your CL into the tip. So I have used 0f766178488c instead. ...
9 years, 9 months ago (2014-07-09 02:44:41 UTC) #33
mlf
I rebased on tip. I fixed syscall so that the API test passes. I verified ...
9 years, 9 months ago (2014-07-09 03:37:04 UTC) #34
minux
https://codereview.appspot.com/86160044/diff/220001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): https://codereview.appspot.com/86160044/diff/220001/src/pkg/syscall/syscall_windows.go#newcode972 src/pkg/syscall/syscall_windows.go:972: // Symlink creates newname as a symbolic link to ...
9 years, 9 months ago (2014-07-09 04:24:30 UTC) #35
brainman
Still fails for me. ok net/url 0.039s --- FAIL: TestSymlink (0.00s) os_test.go:534: stat "symlinktestfrom" failed: ...
9 years, 9 months ago (2014-07-09 05:09:24 UTC) #36
mlf
Looks like I goofed the merge pretty bad. As far as the testcase failing, its ...
9 years, 9 months ago (2014-07-09 11:27:53 UTC) #37
minux
https://codereview.appspot.com/86160044/diff/220001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): https://codereview.appspot.com/86160044/diff/220001/src/pkg/syscall/syscall_windows.go#newcode972 src/pkg/syscall/syscall_windows.go:972: // Symlink creates newname as a symbolic link to ...
9 years, 9 months ago (2014-07-09 21:24:41 UTC) #38
brainman
On 2014/07/09 11:27:53, mlf wrote: > ... > As far as the testcase failing, its ...
9 years, 9 months ago (2014-07-10 00:06:04 UTC) #39
mlf
I believe I addressed everyone's issue. I also fixed the poor merge on my part. ...
9 years, 9 months ago (2014-07-10 04:07:09 UTC) #40
brainman
Tests still fail. Now on my windows-xp: ok net/url 0.063s panic: interface conversion: error is ...
9 years, 9 months ago (2014-07-10 07:23:42 UTC) #41
mlf
How do I regenerate zsyscall_windows? I was just running all.bat and assumed it would regenerate ...
9 years, 9 months ago (2014-07-10 10:50:50 UTC) #42
mlf
On 2014/07/10 10:50:50, mlf wrote: > How do I regenerate zsyscall_windows? > > I was ...
9 years, 9 months ago (2014-07-10 11:24:25 UTC) #43
mlf
Hello golang-codereviews@googlegroups.com, bradfitz@golang.org, alex.brainman@gmail.com, gobot@golang.org, rsc@golang.org, minux@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 9 months ago (2014-07-11 02:11:44 UTC) #44
brainman
LGTM I will wait for another review before submitting (this changes quite a bit of ...
9 years, 9 months ago (2014-07-11 07:08:05 UTC) #45
bradfitz
Random drive-by comments. https://codereview.appspot.com/86160044/diff/280001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): https://codereview.appspot.com/86160044/diff/280001/src/pkg/os/file_windows.go#newcode525 src/pkg/os/file_windows.go:525: pathbuf := []byte(oldname) you can skip ...
9 years, 9 months ago (2014-07-14 22:40:27 UTC) #46
mlf
https://codereview.appspot.com/86160044/diff/280001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): https://codereview.appspot.com/86160044/diff/280001/src/pkg/os/file_windows.go#newcode525 src/pkg/os/file_windows.go:525: pathbuf := []byte(oldname) The moment I find a single ...
9 years, 9 months ago (2014-07-15 01:43:40 UTC) #47
mlf
Hello golang-codereviews@googlegroups.com, alex.brainman@gmail.com, gobot@golang.org, rsc@golang.org, minux@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 9 months ago (2014-07-15 02:08:07 UTC) #48
brainman
One more nit, and I will submit. Thank you. Alex https://codereview.appspot.com/86160044/diff/330001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): https://codereview.appspot.com/86160044/diff/330001/src/pkg/os/file_windows.go#newcode524 ...
9 years, 9 months ago (2014-07-16 06:46:34 UTC) #49
mlf
PTAL https://codereview.appspot.com/86160044/diff/330001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): https://codereview.appspot.com/86160044/diff/330001/src/pkg/os/file_windows.go#newcode524 src/pkg/os/file_windows.go:524: // '/' does not work in link's content ...
9 years, 9 months ago (2014-07-16 10:44:27 UTC) #50
brainman
*** Submitted as https://code.google.com/p/go/source/detail?r=6bdbf9086c00 *** os: Implement symlink support for Windows Fixes Issue 5750. https://code.google.com/p/go/issues/detail?id=5750 ...
9 years, 9 months ago (2014-07-17 07:02:55 UTC) #51
gobot
9 years, 9 months ago (2014-07-17 08:04:38 UTC) #52
This CL appears to have broken the plan9-386-cnielsen builder.
See http://build.golang.org/log/deb22ee25f7fa78825cf8f7c8b2618b57ccd8a19
Sign in to reply to this message.

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