Browse Source

mergerfs_webui.cpp

webui
Antonio SJ Musumeci 1 week ago
parent
commit
08037ea63a
  1. 8
      src/mergerfs_webui.cpp

8
src/mergerfs_webui.cpp

@ -7,6 +7,9 @@
#include "httplib.h" #include "httplib.h"
#include "json.hpp" #include "json.hpp"
#include <regex>
using json = nlohmann::json; using json = nlohmann::json;
static static
@ -160,12 +163,17 @@ static
bool bool
_valid_fs_type(const std::string &type_) _valid_fs_type(const std::string &type_)
{ {
const std::array
if(type_ == "ext2") if(type_ == "ext2")
return true; return true;
if(type_ == "ext3") if(type_ == "ext3")
return true; return true;
if(type_ == "ext4") if(type_ == "ext4")
return true; return true;
if(type_ == "xfs")
return true;
if(type_ == ""
return false; return false;
} }

Loading…
Cancel
Save