Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Issue 9693033: Utility to create NTFS junctions points. (Closed)

Created:
8 years, 9 months ago by szager
Modified:
5 years, 11 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Utility to create NTFS junctions points. To be used in the new git-submodule based workflow. R=nsylvain@chromium.org,cmp@chromium.org BUG= TEST=

Patch Set 1 #

Total comments: 14

Patch Set 2 : Added file system check and less funny error message. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -0 lines) Patch
A tools/junction/junction.c View 1 1 chunk +169 lines, -0 lines 4 comments Download

Messages

Total messages: 7 (0 generated)
szager
8 years, 9 months ago (2012-03-13 06:33:42 UTC) #1
cmp
This looks like C code to me, but has a .cpp file extension, which I ...
8 years, 9 months ago (2012-03-14 17:43:38 UTC) #2
cmp
https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp File tools/junction/junction.cpp (right): https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp#newcode72 tools/junction/junction.cpp:72: if (GetFileAttributes(src_path) == INVALID_FILE_ATTRIBUTES) { This code seems to ...
8 years, 9 months ago (2012-03-14 17:45:11 UTC) #3
szager
Renamed to junction.c, which is appropriate. https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp File tools/junction/junction.cpp (right): https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp#newcode42 tools/junction/junction.cpp:42: int main (int ...
8 years, 9 months ago (2012-03-14 19:04:04 UTC) #4
cmp
https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp File tools/junction/junction.cpp (right): https://chromiumcodereview.appspot.com/9693033/diff/1/tools/junction/junction.cpp#newcode100 tools/junction/junction.cpp:100: case ERROR_ALREADY_EXISTS: I mean what if you moved the ...
8 years, 9 months ago (2012-03-14 19:10:10 UTC) #5
nsylvain
the code looks good, but since it does not really follow the chrome code style, ...
8 years, 9 months ago (2012-03-16 18:24:17 UTC) #6
M-A Ruel
8 years, 7 months ago (2012-05-23 00:28:08 UTC) #7
https://chromiumcodereview.appspot.com/9693033/diff/5001/tools/junction/junct...
File tools/junction/junction.c (right):

https://chromiumcodereview.appspot.com/9693033/diff/5001/tools/junction/junct...
tools/junction/junction.c:45: char* dest_path = NULL;
I highly recommend converting everything to wchar_t and #define UNICODE 1

https://chromiumcodereview.appspot.com/9693033/diff/5001/tools/junction/junct...
tools/junction/junction.c:59: fputs("Usage: junction <destination dir> <source
dir>\n", stderr);
Why fputs here but fprintf around lines 91-92?

https://chromiumcodereview.appspot.com/9693033/diff/5001/tools/junction/junct...
tools/junction/junction.c:82: src_vol = _strdup(buf);
Head explodes. :)

Powered by Google App Engine
This is Rietveld 408576698