-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43718/#review119689
-----------------------------------------------------------




src/linux/fs.hpp (line 351)
<https://reviews.apache.org/r/43718/#comment181028>

    Not sure how exactly this will be used later, but I would much prefer a 
less stringly-typed and more type-safe variant.
    
    What about something like this?
    
        enum class FileSystem { ext2, ext3, ext4 };
        
        bool supported(FileSystem fileSystem);
        
    This would minimize weird usage like the `notexistingfs` you have in your 
test.


- Benjamin Bannier


On Feb. 18, 2016, 5:01 p.m., Shuai Lin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43718/
> -----------------------------------------------------------
> 
> (Updated Feb. 18, 2016, 5:01 p.m.)
> 
> 
> Review request for mesos and Jie Yu.
> 
> 
> Bugs: MESOS-4707
>     https://issues.apache.org/jira/browse/MESOS-4707
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added fs::supported() function.
> 
> 
> Diffs
> -----
> 
>   src/linux/fs.hpp fddee2441e008dc70d9cff5e63536ef21c865595 
>   src/linux/fs.cpp 0df194207a66bf4c417349bebcc8912acbf5976e 
>   src/tests/containerizer/fs_tests.cpp 
> 29e43877612fa151e6f6d79268a7411272a7bfeb 
> 
> Diff: https://reviews.apache.org/r/43718/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Shuai Lin
> 
>

Reply via email to