1 | // SPDX-License-Identifier: GPL-3.0-or-later |
---|---|
2 | |
3 | #include "blockdev_manager.hpp" |
4 | |
5 | #include <iostream> |
6 | |
7 | int main(int argc, char **argv) |
8 | { |
9 | MOS_UNUSED(argc); |
10 | MOS_UNUSED(argv); |
11 | |
12 | std::cerr << "Block Device Manager for MOS"<< std::endl; |
13 | BlockManager manager; |
14 | |
15 | if (!register_blockdevfs()) |
16 | { |
17 | std::cerr << "Failed to register blockdevfs"<< std::endl; |
18 | return 1; |
19 | } |
20 | |
21 | manager.run(); |
22 | |
23 | std::cerr << "Block Device Manager exiting"<< std::endl; |
24 | return 0; |
25 | } |
26 |