----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57926/#review170069 ----------------------------------------------------------- Patch looks great! Reviews applied: [57926] Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; ./support/docker-build.sh - Mesos Reviewbot On March 24, 2017, 11:48 p.m., Andrew Schwartzmeyer wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/57926/ > ----------------------------------------------------------- > > (Updated March 24, 2017, 11:48 p.m.) > > > Review request for mesos, John Kordich, James Peach, Joseph Wu, Li Li, and Michael Park. > > > Bugs: MESOS-7307 > https://issues.apache.org/jira/browse/MESOS-7307 > > > Repository: mesos > > > Description > ------- > > Commit 5f159cdcb introduced `return Error(...)` logic to functions > which return `bool`, not `Try`, which broke the Windows build. > > Furthermore, in the instances of `isdir` and `isfile`, erroring when > asked to not follow a symlink is not correct. The semantics of symlinks > provide clear answers to `isdir` and `isfile` when the target is a link, > and is not being followed (it is neither a regular file nor a directory). > > We explicitly match the POSIX semantics for `isfile` where `S_IFREG` > returns `false` for symbolic links. > > For the functions `mode` and `dev`, which return types wrapped by `Try`, > we should only error if asked not to follow symlinks, and the target is > actually a symlink. If it is not a symlink to begin with, we should not > prematurely error. If it is a symlink, we should error because there is > no equivalent of `lstat` on Windows to obtain `st_mode` or `st_dev` of a > symlink itself. > > > Diffs > ----- > > 3rdparty/stout/include/stout/os/windows/stat.hpp 8587341282ca2d596a2b6f23f84b84a00053c3d5 > > > Diff: https://reviews.apache.org/r/57926/diff/2/ > > > Testing > ------- > > Build on Windows and run stout-tests.exe > > > Thanks, > > Andrew Schwartzmeyer > >