0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-18 18:08:21 +02:00

ircd::fs: Minor cleanup.

This commit is contained in:
Jason Volk 2020-05-20 17:56:02 -07:00
parent 875b8a01f1
commit 82485b9aa9
2 changed files with 10 additions and 12 deletions

View file

@ -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;

View file

@ -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
{