diff options
Diffstat (limited to 'src/extsh.cpp')
| -rw-r--r-- | src/extsh.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/extsh.cpp b/src/extsh.cpp new file mode 100644 index 0000000..477f6c8 --- /dev/null +++ b/src/extsh.cpp @@ -0,0 +1,19 @@ +#include "fs/extfs.hpp" + +#include <iostream> +#include <string> + +int main(int argc, char const * argv[]) + { + auto const & path = [&]{ return std::string{argc > 1 ? argv[1] : "vdisk.img"}; }(); + auto const & disk = fs::extfs{path}; + + if(disk) + { + std::clog << "[EXT2] Successfully opened ext*fs at: '" << path << "'\n"; + } + else + { + std::clog << "[EXT2] Failed to open ext*fs at: '" << path << "'\n"; + } + } |
