NeKernel dev
Loading...
Searching...
No Matches
mkfs.h File Reference
#include <tooling/rang.h>
#include <sstream>
#include <iostream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  mkfs
namespace  mkfs::detail

Macros

#define kMkFsSectorSz   (512U)
#define kMkFsMaxBadSectors   (128U)

Functions

constexpr size_t mkfs::detail::gib_cast (uint32_t gb)
bool mkfs::detail::parse_decimal (const std::string &opt, unsigned long long &out)
bool mkfs::detail::parse_signed (const std::string &opt, long &out, int base=10)
std::string mkfs::detail::build_args (int argc, char **argv)
template<typename CharType>
std::basic_string< CharType > mkfs::get_option (const std::basic_string< CharType > &args, const std::basic_string< CharType > &option)
 Helper function to get the option value from command line arguments.
auto mkfs::console_out () -> std::ostream &

Macro Definition Documentation

◆ kMkFsMaxBadSectors

#define kMkFsMaxBadSectors   (128U)

◆ kMkFsSectorSz

#define kMkFsSectorSz   (512U)