----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30609/#review71028 -----------------------------------------------------------
3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp <https://reviews.apache.org/r/30609/#comment116547> Could you please use Try like the other os functions like: inline Try<off_t> filesize(const std::string& path) 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp <https://reviews.apache.org/r/30609/#comment116540> See above comment, thanks to the Try you can now return a proper error like: return ErrnoError(); - Isabel Jimenez On Feb. 4, 2015, 8:12 a.m., Bernd Mathiske wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/30609/ > ----------------------------------------------------------- > > (Updated Feb. 4, 2015, 8:12 a.m.) > > > Review request for mesos, Adam B, Benjamin Hindman, Till Toenshoff, and > Timothy Chen. > > > Bugs: MESOS-2072 > https://issues.apache.org/jira/browse/MESOS-2072 > > > Repository: mesos > > > Description > ------- > > Added os::filesize(). This returns a file's size as reported by stat(). > > > Diffs > ----- > > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp > 8a4fda97ee29c185471a69f60803efc193cbe922 > > Diff: https://reviews.apache.org/r/30609/diff/ > > > Testing > ------- > > Ran it on a small file in a MESOS-2074 test with MESOS-2072 code (coming up, > depending on this). It reported the correct length. > > > Thanks, > > Bernd Mathiske > >
