diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2016-12-23 22:19:13 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2016-12-23 23:22:22 +0100 |
| commit | 31bb7fd29bca88f86860bdc8aa7f09c3e8e3f111 (patch) | |
| tree | 4e98d54eb2ec60d9536c8fe2b322440a7b4dbf78 /src/extsh.cpp | |
| download | extfs-31bb7fd29bca88f86860bdc8aa7f09c3e8e3f111.tar.xz extfs-31bb7fd29bca88f86860bdc8aa7f09c3e8e3f111.zip | |
Initial commit
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"; + } + } |
