mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
ircd::fs: Minor cleanup.
This commit is contained in:
parent
875b8a01f1
commit
82485b9aa9
2 changed files with 10 additions and 12 deletions
|
@ -31,7 +31,7 @@ struct ircd::fs::fd
|
|||
{
|
||||
struct opts;
|
||||
|
||||
int fdno{-1};
|
||||
int fdno {-1};
|
||||
|
||||
public:
|
||||
operator const int &() const;
|
||||
|
@ -52,6 +52,7 @@ struct ircd::fs::fd
|
|||
~fd() noexcept;
|
||||
};
|
||||
|
||||
/// Descriptor options (open options)
|
||||
struct ircd::fs::fd::opts
|
||||
{
|
||||
static conf::item<bool> direct_io_enable;
|
||||
|
|
19
ircd/fs.cc
19
ircd/fs.cc
|
@ -27,23 +27,20 @@
|
|||
// TODO: prevents use until io_uring support implemented
|
||||
#undef IRCD_USE_IOU
|
||||
|
||||
namespace ircd::fs
|
||||
{
|
||||
extern conf::item<ulong> rlimit_nofile;
|
||||
|
||||
static void update_rlimit_nofile();
|
||||
static void init_dump_info();
|
||||
}
|
||||
|
||||
decltype(ircd::fs::log)
|
||||
ircd::fs::log
|
||||
{
|
||||
"fs"
|
||||
};
|
||||
|
||||
//
|
||||
// init
|
||||
//
|
||||
|
||||
namespace ircd::fs
|
||||
{
|
||||
extern conf::item<ulong> rlimit_nofile;
|
||||
static void update_rlimit_nofile();
|
||||
static void init_dump_info();
|
||||
}
|
||||
|
||||
decltype(ircd::fs::rlimit_nofile)
|
||||
ircd::fs::rlimit_nofile
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue